zhouwx
2024-08-22 7887434cde98de8ea5e24ea10db09d014568c79d
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;
        }
      })