zhouwx
2024-08-22 7887434cde98de8ea5e24ea10db09d014568c79d
修改
已修改2个文件
13 ■■■■ 文件已修改
src/views/onlineEducation/classBatch/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/onlineEducation/count/index.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/onlineEducation/classBatch/index.vue
@@ -51,7 +51,7 @@
      <el-table-column label="推送平台" align="center" prop="institutionName" />
      <el-table-column label="开始时间" align="center" prop="actualStartTime" />
      <el-table-column label="计划结束时间" align="center" prop="actualEndTime" />
      <el-table-column label="类别" align="center" prop="subjectCode" />
      <el-table-column label="类别" align="center" prop="subjectName" />
      <el-table-column label="上报时间" align="center" prop="createTime" />
      <el-table-column label="所属培训机构" align="center" prop="trainOrgName" />
      <el-table-column label="课程" align="center" >
@@ -73,7 +73,7 @@
      </el-table-column>
      <el-table-column label="已开班" align="center" prop="openStatus" >
        <template #default="scope">
          <span>{{scope.row.openStatus == 0 ? '否' : '是'}}</span>
          <span>{{scope.row.openStatus == 0 ? '未开班' : scope.row.openStatus == 1 ? '开班' : '结束'}}</span>
        </template>
      </el-table-column>
      <el-table-column label="数据更新时间" align="center" prop="updateTime" width="100" />
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;
        }
      })