From 7887434cde98de8ea5e24ea10db09d014568c79d Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期四, 22 八月 2024 10:38:15 +0800 Subject: [PATCH] 修改 --- src/views/onlineEducation/count/index.vue | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/views/onlineEducation/count/index.vue b/src/views/onlineEducation/count/index.vue index 9a1d718..b9ee916 100644 --- a/src/views/onlineEducation/count/index.vue +++ b/src/views/onlineEducation/count/index.vue @@ -55,6 +55,8 @@ <el-table-column label="平台" align="center" prop="institutionName" /> <el-table-column label="培训总人数" align="center" prop="studentCount" /> <el-table-column label="培训学时达标人数" align="center" prop="finishCount" /> + <el-table-column label="学时合格率" align="center" prop="classHourRate" /> + <el-table-column label="考试总人数" align="center" prop="eaxmStudentCount" /> <el-table-column label="考试合格人数" align="center" prop="passCount" /> <el-table-column label="考试合格率" align="center" prop="passRate"> <template #default="scope"> @@ -134,7 +136,12 @@ this.loading = true; getCount(this.queryParams).then(res => { if (res.code == 200) { - this.expertList = res.data + this.expertList = res.data.map(item => { + return { + ...item, + classHourRate: item.finishCount != 0 && item.studentCount != 0 ? (item.finishCount / item.studentCount).toFixed(2) *100 + '%': '0%' + } + }) this.loading = false; } }) -- Gitblit v1.9.2