From 2811859236dfcfe4d74469f6082e41580edb2bbc Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期二, 05 十二月 2023 12:03:07 +0800 Subject: [PATCH] qxtj --- src/views/doctor/test/index.vue | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/views/doctor/test/index.vue b/src/views/doctor/test/index.vue index c4c45be..2130b9b 100644 --- a/src/views/doctor/test/index.vue +++ b/src/views/doctor/test/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" /> @@ -606,6 +606,13 @@ // } // }) }, + myclass(row, column, rowIndex, columnIndex) { + if (row.row.isPositive == 1) { + return "setclass" + } + }, + + // 灏忕粨鑾峰彇澶囨敞 sel(val) { if (this.proParentList.xiaoJie.length != 0) { @@ -1328,7 +1335,7 @@ }, }; </script> -<style scoped> +<style > .el-table .cell { -webkit-box-sizing: border-box; box-sizing: border-box; @@ -1345,6 +1352,10 @@ height: 240px; overflow: auto } +.setclass { + background-color: #f86b35; + color: black; +} .blue-button { width: 10px; -- Gitblit v1.8.0