From 295e96d06f1c397df40bc82614041636d69b9ee2 Mon Sep 17 00:00:00 2001 From: qx <2540746708@qq.com> Date: 星期三, 13 十二月 2023 10:10:47 +0800 Subject: [PATCH] qxtj --- src/views/doctor/imaging/index.vue | 85 +++++++++++++++++++++++++++++------------- 1 files changed, 58 insertions(+), 27 deletions(-) diff --git a/src/views/doctor/imaging/index.vue b/src/views/doctor/imaging/index.vue index 60c6edd..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=""> + 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,6 +46,8 @@ 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)" + title="鎶ュ憡"></el-button> </template> </el-table-column> </el-table> @@ -264,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> @@ -301,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"> @@ -445,6 +447,7 @@ getParentId, getDeptAdvice, } from "@/api/doctor/check"; +import { getConfigKey } from "@/api/system/config"; import { addBigPositive } from "@/api/doctor/bigPositive"; @@ -462,10 +465,10 @@ return { url: '', srcList: [], - formIn:{}, + formIn: {}, project: {}, Parentcheck: {}, - checkval:false, + checkval: false, selected: false, // 閬僵灞� loading: false, @@ -546,7 +549,7 @@ }, rules: { hzType: [ - { required: true, message: '璇烽�夋嫨绉戝', trigger: 'change' } + { required: true, message: '', trigger: 'change' } ] } }; @@ -602,6 +605,12 @@ // this.doctorName = item.nickName // } // }) + }, + + myclass(row, column, rowIndex, columnIndex) { + if (row.row.isPositive == 1) { + return "setclass" + } }, // 灏忕粨鑾峰彇澶囨敞 sel(val) { @@ -661,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 = []; } + } + }); }, @@ -740,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 @@ -782,9 +801,9 @@ } else { this.formIn.flag = "0" addBigPositive(this.formIn).then(res => { - this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); - this.getParentIdsss() - }) + this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); + this.getParentIdsss() + }) } }, submitcheckval() { @@ -964,8 +983,15 @@ } }, - // 鐐瑰嚮璇︽儏 - handleClick(row) { + handlepicture(row) { + let configKey = "pacsUrl" + getConfigKey(configKey).then(res => { + window.open(res.msg, '_blank'); + }) + }, + + // 鐐瑰嚮璇︽儏 + handleClick(row) { this.getDept(row.tjNumber) this.loading = true; this.drawer = true; @@ -1327,7 +1353,7 @@ }, }; </script> -<style scoped> +<style > .el-table .cell { -webkit-box-sizing: border-box; box-sizing: border-box; @@ -1339,6 +1365,11 @@ padding-right: 10px; } +.setclass { + background-color: #f86b35; + color: black; +} + .blue-button { width: 10px; background-color: #e2e3e4; -- Gitblit v1.8.0