From 79f08099c190a78beb676c6895804530739c2a0b Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期五, 29 十一月 2024 14:48:35 +0800 Subject: [PATCH] 修改首页 --- src/views/onlineEducation/groupExams/index.vue | 26 +++++++++++++++++++++++--- 1 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/views/onlineEducation/groupExams/index.vue b/src/views/onlineEducation/groupExams/index.vue index 6fa05ec..96c9c6b 100644 --- a/src/views/onlineEducation/groupExams/index.vue +++ b/src/views/onlineEducation/groupExams/index.vue @@ -59,6 +59,11 @@ <span>{{scope.row.paperStudentInfoVO.avgScore}}</span> </template> </el-table-column> + <el-table-column label="合格分/总分" prop="" align="center" width="120" > + <template #default="scope"> + <span>{{scope.row.passScore}}/{{scope.row.judgeNum * scope.row.judgeScore + scope.row.multiNum * scope.row.multiScore + scope.row.singleNum * scope.row.singleScore+ scope.row.easyNum * scope.row.easyScore}}</span> + </template> + </el-table-column> <el-table-column label="合格率" prop="passRate" align="center" /> <el-table-column label="限制时长/分钟" prop="limitTime" align="center" width="120" > <template #default="scope"> @@ -97,13 +102,13 @@ import examDialog from './components/examDialog.vue' import examQuestion from './components/viewExamQuestion.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"; import {delExam, getExam} from "@/api/onlineEducation/exam"; import {getClassification} from "@/api/onlineEducation/courseClass"; - +const route = useRoute() const { proxy } = getCurrentInstance(); const loading = ref(false); @@ -132,6 +137,13 @@ 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){ @@ -200,7 +212,15 @@ }) } const toStuChoose = (val) => { - const v = JSON.stringify(val) + const obj = { + pageNum: data.queryParams.pageNum, + pageSize: data.queryParams.pageSize, + id: val.id, + type: 'index' + } + // val.pageNum = data.queryParams.pageNum; + // val.pageSize = data.queryParams.pageSize + const v = JSON.stringify(obj) router.push({ path: "/examStu", query: { val: v } }); } const viewQuestion = (val) => { -- Gitblit v1.9.2