From 639c97afabc39d3adadc17f07fa63fbd887f40fc Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Fri, 03 Jul 2026 09:13:58 +0800
Subject: [PATCH] 中科大支线-修改

---
 src/views/onlineEducation/groupExams/index.vue |   30 +++++++++++++++++++++++++-----
 1 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/src/views/onlineEducation/groupExams/index.vue b/src/views/onlineEducation/groupExams/index.vue
index 6fa05ec..1a54ac7 100644
--- a/src/views/onlineEducation/groupExams/index.vue
+++ b/src/views/onlineEducation/groupExams/index.vue
@@ -41,7 +41,7 @@
     <el-table v-loading="loading" :data="dataList" :border="true">
       <el-table-column label="编号" prop="code" align="center" width="135" />
       <el-table-column label="考试名称" prop="name" align="center"  />
-      <el-table-column label="企业名称" prop="companyName" align="center"  />
+      <el-table-column label="单位名称" prop="companyName" align="center"  />
       <el-table-column label="创建账户" prop="createBy" align="center"  />
       <el-table-column label="科目/类别" prop="categoryName" align="center"  />
       <el-table-column label="完成人数/总人数" prop="" align="center"  width="135">
@@ -57,6 +57,11 @@
       <el-table-column label="平均分数" prop="" align="center" >
         <template #default="scope">
           <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" />
@@ -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){
@@ -154,7 +166,7 @@
     data.dataList = res.data.list.map(item => {
       return {
         ...item,
-        passRate: item.paperStudentInfoVO.passStudentCount ===0 && item.paperStudentInfoVO.studentCount ===0  ? '0%': (item.paperStudentInfoVO.passStudentCount / item.paperStudentInfoVO.studentCount).toFixed(2) *100 + '%',
+      passRate: item.paperStudentInfoVO.passStudentCount ===0 && item.paperStudentInfoVO.studentCount ===0  ? '0%': ((item.paperStudentInfoVO.passStudentCount / item.paperStudentInfoVO.studentCount)*100).toFixed(2).replace(/\.00$/, '')  + '%',
         deadlineNum: item.deadline ? item.deadline.slice(0,10) : ''
       }
     })
@@ -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