From 9e34f13a1cd13d2115213eafede528b146d246a4 Mon Sep 17 00:00:00 2001 From: WXL (wul) <wl_5969728@163.com> Date: 星期五, 26 九月 2025 15:52:11 +0800 Subject: [PATCH] 测试完成 --- src/views/sfstatistics/percentage/satisfaction.vue | 87 ++++++++++++++++--------------------------- 1 files changed, 32 insertions(+), 55 deletions(-) diff --git a/src/views/sfstatistics/percentage/satisfaction.vue b/src/views/sfstatistics/percentage/satisfaction.vue index b9ced80..99a6ba4 100644 --- a/src/views/sfstatistics/percentage/satisfaction.vue +++ b/src/views/sfstatistics/percentage/satisfaction.vue @@ -131,8 +131,6 @@ :data="userList" :border="true" @selection-change="handleSelectionChange" - @row-click="handleRowClick" - @expand-change="handleRowClick" :row-key="getRowKey" :expand-row-keys="expands" > @@ -207,22 +205,22 @@ <el-table-column label="婊℃剰搴﹂鐩�婚噺" align="center" - key="manual" - prop="manual" + key="joyAllCount" + prop="joyAllCount" > </el-table-column> <el-table-column label="婊℃剰搴﹀~鎶ラ噺" align="center" - key="sms" - prop="sms" + key="joyCount" + prop="joyCount" > </el-table-column> <el-table-column label="瀹屾垚姣旂巼" align="center" - key="rate" - prop="rate" + key="joyTotal" + prop="joyTotal" > <template slot-scope="scope"> <el-button @@ -230,27 +228,31 @@ type="text" @click="Seedetails(scope.row)" ><span class="button-zx" - >{{ (Number(scope.row.rate) * 100).toFixed(2) }}%</span + >{{ + (Number(scope.row.joyTotal) * 100).toFixed(2) + }}%</span ></el-button > </template> </el-table-column> <el-table-column - label="鎿嶄綔" - align="center" - fixed="right" - width="300" - class-name="small-padding fixed-width" - > - <template slot-scope="scope"> - <el-button size="medium" type="text" @click="Seedetails(scope.row)" - ><span class="button-zx" - ><i class="el-icon-s-order"></i>鏌ョ湅璇︽儏</span - ></el-button - > - - </template> - </el-table-column> + label="鎿嶄綔" + align="center" + fixed="right" + width="300" + class-name="small-padding fixed-width" + > + <template slot-scope="scope"> + <el-button + size="medium" + type="text" + @click="Seedetails(scope.row)" + ><span class="button-zx" + ><i class="el-icon-s-order"></i>鏌ョ湅璇︽儏</span + ></el-button + > + </template> + </el-table-column> </el-table> <!-- <pagination @@ -523,7 +525,11 @@ changetagcategory, } from "@/api/system/label"; import store from "@/store"; -import { getSfStatistics, selectTimelyRate } from "@/api/system/user"; +import { + getSfStatisticsJoydetails, + getSfStatisticsJoy, + selectTimelyRate, +} from "@/api/system/user"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; @@ -698,7 +704,7 @@ // 绉婚櫎鍙兘瀛樺湪鐨�"all"鍊� delete params.leavehospitaldistrictcodes.all; delete params.deptcodes.all; - getSfStatistics(params).then((response) => { + getSfStatisticsJoy(params).then((response) => { console.log(response); // this.total = response.total; this.userList = response.data; @@ -708,35 +714,6 @@ return row.statisticaltype === 1 ? row.leavehospitaldistrictcode : row.deptcode; - }, - - // 澶勭悊琛岀偣鍑诲睍寮� - handleRowClick(row) { - console.log(row, "row"); - - // 濡傛灉宸茬粡灞曞紑鍒欐敹璧� - if (this.expands.includes(this.getRowKey(row))) { - this.expands = []; - return; - } - // 澶勭悊鏌ヨ鍙傛暟 - const params = { - ...this.queryParams, - // 濡傛灉閫夋嫨浜�"鍏ㄩ儴"锛屽垯浼犳墍鏈夌梾鍖�/绉戝浠g爜 - leavehospitaldistrictcodes: [row.leavehospitaldistrictcode], - drcode: "1", - }; - // 濡傛灉璇ヨ杩樻病鏈夊姞杞藉尰鐢熸暟鎹紝鍒欏姞杞� - if (!row.doctorStats) { - this.loading = true; - getSfStatistics(params).then((res) => { - this.$set(row, "doctorStats", res.data); - this.expands = [this.getRowKey(row)]; - this.loading = false; - }); - } else { - this.expands = [this.getRowKey(row)]; - } }, /** 淇敼鏍囩 */ handleUpdate(row) { -- Gitblit v1.9.3