From 7a5a82daef28a016b3c9cfd903cdcb4bb066a8e4 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Thu, 23 Jan 2025 14:09:44 +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