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/check/index.vue | 46 ++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 38 insertions(+), 8 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index d954fd1..40b6104 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -21,8 +21,8 @@ </div> <template> - <el-table :data="tableList" v-loading="loading" ref="table" height="536px" style="margin: 20px; width: 98%" - border=""> + <el-table :data="tableList" v-loading="loading" ref="table" height="536px" style="margin: 20px; width: 98%" 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" /> @@ -238,9 +238,15 @@ </tr> </table> </div> - <div style="margin: 10px 10px;" v-if="hasdeptList.length >= 1"> - <el-button type="primary" size="mini" @click="Changeapply()">浼氳瘖鐢宠</el-button> + <div> + <div style="margin: 10px 10px;" v-if="hasdeptList.length >= 1"> + <el-button type="primary" size="mini" @click="Changeapply()">浼氳瘖鐢宠</el-button> + </div> + <div style="margin: 10px 10px;" > + <el-button type="primary" size="mini" @click="historicalreport()">鍘嗗彶鎶ュ憡</el-button> + </div> </div> + <template> <div style="margin-left: 10px"> @@ -413,6 +419,7 @@ getParentList, getParentId, getDeptAdvice, + reportHistory } from "@/api/doctor/check"; import { addBigPositive @@ -568,6 +575,12 @@ // } // }) }, + + myclass(row, column, rowIndex, columnIndex) { + if (row.row.isPositive == 1) { + return "setclass" + } + }, // 灏忕粨鑾峰彇澶囨敞 sel(val) { if (this.proParentList.xiaoJie.length != 0) { @@ -626,9 +639,11 @@ }, getList() { + this.loading = true; this.queryParams.type = this.tjStatus; getProList(this.queryParams).then((response) => { if (response.data) { + this.loading = false; if (response.data.date) { this.tableList = response.data.date; } else { @@ -644,8 +659,10 @@ // 鍗曢�夋寜閽� radioChange(val) { this.queryParams.type = val; + this.loading = true; getProList(this.queryParams).then((response) => { if (response.data) { + this.loading = false; this.tableList = response.data.date; this.total = response.data.total; } else { @@ -720,9 +737,9 @@ } else { this.formIn.flag = "0" addBigPositive(this.formIn).then(res => { - this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); - this.getParentIdsss() - }) + this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); + this.getParentIdsss() + }) } }, submitcheckval() { @@ -845,7 +862,14 @@ Changeapply() { this.foropen = true this.Hzlog(this.tableAll.tjNumber) + }, + historicalreport() { + let data = { + cusId:this.tableAll.cusId + } + reportHistory(data).then(res =>{ + }) }, submitFormreply() { let data = { @@ -1263,7 +1287,7 @@ }, }; </script> -<style scoped> +<style > .el-table .cell { -webkit-box-sizing: border-box; box-sizing: border-box; @@ -1275,6 +1299,12 @@ padding-right: 10px; } +.setclass { + background-color: #f86b35; + color: black; +} + + .blue-button { width: 10px; background-color: #e2e3e4; -- Gitblit v1.8.0