From 7e827c55fa38991089d6d735f5f425b3e9cb96e1 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: Tue, 30 Jun 2026 16:46:08 +0800
Subject: [PATCH] 修改名称
---
src/views/onlineEducation/classHourBatch/index.vue | 35 +++++++++++++++++++++++++++--------
1 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/src/views/onlineEducation/classHourBatch/index.vue b/src/views/onlineEducation/classHourBatch/index.vue
index 8de4403..5f28fca 100644
--- a/src/views/onlineEducation/classHourBatch/index.vue
+++ b/src/views/onlineEducation/classHourBatch/index.vue
@@ -49,14 +49,18 @@
<el-table-column label="创建企业" prop="companyName" align="center" />
<el-table-column label="批次级别" prop="level" align="center" >
<template #default="scope">
- <span>{{scope.row.level === 1 ? '公司级' : scope.row.level === 2 ? '部门级' : scope.row.level === 3 ? '车间级' : '其他' }}</span>
+ <span>{{scope.row.level === 1 ? '单位级' : scope.row.level === 2 ? '学院级' : scope.row.level === 3 ? '实验室级' : '其他' }}</span>
</template>
</el-table-column>
<el-table-column label="课程" prop="courseName" align="center" />
<el-table-column label="学习人数" prop="studentCount" align="center" />
<el-table-column label="总课时" prop="coursePeriodNum" align="center" />
<el-table-column label="已完成人数" prop="finishCount" align="center" />
- <el-table-column label="完成率" prop="finishRate" align="center" />
+ <el-table-column label="完成率" prop="finishRate" align="center">
+ <template #default="scope">
+ <span>{{scope.row.finishRate.toFixed(2)}}</span>
+ </template>
+ </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180">
<template #default="scope">
<el-button link type="primary" @click="toStuChoose(scope.row)">学生数据</el-button>
@@ -84,11 +88,11 @@
import batchDialog from './components/batchDialog.vue'
import classHourChange from './components/classHourChange.vue'
import Cookies from "js-cookie";
-import {useRouter} from 'vue-router'
+import {useRoute, useRouter} from 'vue-router'
const router = useRouter()
import {delQuestionBank, getQuestionBank} from "@/api/onlineEducation/questionBank";
import {delBatch, getBatch} from "@/api/onlineEducation/batch";
-
+const route = useRoute()
const { proxy } = getCurrentInstance();
const loading = ref(false);
@@ -110,15 +114,15 @@
levelList: [
{
id: 1,
- name: '公司级 '
+ name: '单位级 '
},
{
id: 2,
- name: '部门级'
+ name: '学院级'
},
{
id: 3,
- name: '车间级'
+ name: '实验室级'
},
{
id: 4,
@@ -131,6 +135,14 @@
const { queryParams, total, dataList } = toRefs(data);
onMounted(async ()=>{
+ if(route.query.val){
+ const val = JSON.parse(route.query.val)
+ if(val){
+ data.queryParams.pageNum = val.pageNum;
+ data.queryParams.pageSize = val.pageSize;
+ }
+ }
+
const userInfo = JSON.parse(Cookies.get('userInfo'))
console.log("userInfo",userInfo)
if(userInfo.userType === 0){
@@ -199,7 +211,14 @@
})
}
const toStuChoose = (val) => {
- const v = JSON.stringify(val)
+ const obj = {
+ pageNum: data.queryParams.pageNum,
+ pageSize: data.queryParams.pageSize,
+ id: val.id
+ }
+ // val.pageNum = data.queryParams.pageNum;
+ // val.pageSize = data.queryParams.pageSize
+ const v = JSON.stringify(obj)
router.push({ path: "/chooseStu", query: { val: v } });
}
--
Gitblit v1.9.2