From 9d26234c1d5f760fcab4adea68984c02485bcf82 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期一, 11 十二月 2023 16:48:28 +0800 Subject: [PATCH] qxtj --- src/views/doctor/imaging/index.vue | 65 +++++++++++++++++++------------- 1 files changed, 38 insertions(+), 27 deletions(-) diff --git a/src/views/doctor/imaging/index.vue b/src/views/doctor/imaging/index.vue index 1937d28..536371e 100644 --- a/src/views/doctor/imaging/index.vue +++ b/src/views/doctor/imaging/index.vue @@ -22,7 +22,7 @@ <template> <el-table :data="tableList" v-loading="loading" ref="table" height="536px" style="margin: 20px; width: 98%" - border="" :cell-class-name="myclass"> + border="" :cell-class-name="myclass"> <!-- <template slot="empty">鏁版嵁姝e湪鍔犺浇涓�</template> --> <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" width="160px" /> <el-table-column label="濮撳悕" align="center" prop="cusName" width="90px" /> @@ -46,7 +46,7 @@ title="浼氳瘖鐢宠" v-if="tjStatus == '1'"></el-button> <el-button type="primary" icon="el-icon-share" size="mini" @click="handleClick(scope.row)" title="璇︽儏"></el-button> - <el-button type="primary" icon="el-icon-picture" size="mini" @click="handlepicture(scope.row)" + <el-button type="primary" icon="el-icon-picture" size="mini" @click="handlepicture(scope.row)" title="鎶ュ憡"></el-button> </template> </el-table-column> @@ -266,7 +266,7 @@ <div style="margin: 10px 10px;" v-if="hasdeptList.length >= 1"> <el-button type="primary" size="mini" @click="Changeapply()">浼氳瘖鐢宠</el-button> </div> - + </div> @@ -303,7 +303,7 @@ {{ scope.row.standard.company }} </template> --> </el-table-column> - <el-table-column prop="project.proScope" label="鍙傝�冭寖鍥�" width="100"> + <el-table-column prop="project.proScope" label="鍙傝�冭寖鍥�" width="100"> </el-table-column> <el-table-column prop="conclusion" label="缁撴灉缁撹" width="280"> <template slot-scope="scope"> @@ -465,10 +465,10 @@ return { url: '', srcList: [], - formIn:{}, + formIn: {}, project: {}, Parentcheck: {}, - checkval:false, + checkval: false, selected: false, // 閬僵灞� loading: false, @@ -670,31 +670,41 @@ }, getList() { + this.loading = true this.queryParams.type = this.tjStatus; huaYangetProList(this.queryParams).then((response) => { - if (response.data) { - if (response.data.date) { - this.tableList = response.data.date; + if (response.code == 200) { + this.loading = false + if (response.data) { + if (response.data.date) { + this.tableList = response.data.date; + } else { + this.tableList = response.data.customers; + } + this.total = response.data.total; } else { - this.tableList = response.data.customers; + this.tableList = []; } - this.total = response.data.total; - } else { - this.tableList = []; } + }); }, // 鍗曢�夋寜閽� radioChange(val) { + this.loading = true this.queryParams.type = val; huaYangetProList(this.queryParams).then((response) => { - if (response.data) { + if(response.code == 200){ + this.loading = false + if (response.data) { this.tableList = response.data.date; this.total = response.data.total; } else { this.tableList = []; } + } + }); }, @@ -749,20 +759,20 @@ // this.drawer = false; this.tuweiopen = true; let data = { - tjNumber:this.tjNumber, - proId:this.proId, + tjNumber: this.tjNumber, + proId: this.proId, } getPhotoList(data).then(res => { this.proimgList = res.data }) }, - handleproimgChange(selected){ + handleproimgChange(selected) { const val = selected selected.forEach(item => { - if(val[val.length -1] == item){ - this.$refs.tabss.toggleRowSelection(item,true) - }else { - this.$refs.tabss.toggleRowSelection(item,false) + if (val[val.length - 1] == item) { + this.$refs.tabss.toggleRowSelection(item, true) + } else { + this.$refs.tabss.toggleRowSelection(item, false) } }) this.url = selected[0].checkPicture @@ -791,9 +801,9 @@ } else { this.formIn.flag = "0" addBigPositive(this.formIn).then(res => { - this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); - this.getParentIdsss() - }) + this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); + this.getParentIdsss() + }) } }, submitcheckval() { @@ -973,15 +983,15 @@ } }, - handlepicture(row){ + handlepicture(row) { let configKey = "pacsUrl" getConfigKey(configKey).then(res => { window.open(res.msg, '_blank'); }) }, - // 鐐瑰嚮璇︽儏 - handleClick(row) { + // 鐐瑰嚮璇︽儏 + handleClick(row) { this.getDept(row.tjNumber) this.loading = true; this.drawer = true; @@ -1354,6 +1364,7 @@ padding-left: 10px; padding-right: 10px; } + .setclass { background-color: #f86b35; color: black; -- Gitblit v1.8.0