From 876f43e0fd34e084cc8a179a20afb51fe612eca3 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期六, 09 十二月 2023 18:59:31 +0800 Subject: [PATCH] qxtj --- src/views/doctor/imaging/index.vue | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/views/doctor/imaging/index.vue b/src/views/doctor/imaging/index.vue index 60c6edd..ef7183a 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> @@ -445,6 +447,7 @@ getParentId, getDeptAdvice, } from "@/api/doctor/check"; +import { getConfigKey } from "@/api/system/config"; import { addBigPositive } from "@/api/doctor/bigPositive"; @@ -602,6 +605,12 @@ // this.doctorName = item.nickName // } // }) + }, + + myclass(row, column, rowIndex, columnIndex) { + if (row.row.isPositive == 1) { + return "setclass" + } }, // 灏忕粨鑾峰彇澶囨敞 sel(val) { @@ -962,6 +971,13 @@ } this.allList = selection } + }, + + handlepicture(row){ + let configKey = "pacsUrl" + getConfigKey(configKey).then(res => { + window.open(res.msg, '_blank'); + }) }, // 鐐瑰嚮璇︽儏 @@ -1327,7 +1343,7 @@ }, }; </script> -<style scoped> +<style > .el-table .cell { -webkit-box-sizing: border-box; box-sizing: border-box; @@ -1338,6 +1354,10 @@ padding-left: 10px; padding-right: 10px; } +.setclass { + background-color: #f86b35; + color: black; +} .blue-button { width: 10px; -- Gitblit v1.8.0