Quellcode durchsuchen

增加成绩分析路由

dengshaobo vor 2 Wochen
Ursprung
Commit
cb0385960c

+ 13 - 5
src/router/index.ts

@@ -59,16 +59,24 @@ const routes: Array<RouteRecordRaw> = [
         name: 'scanDetail',
         component: () => import('@/views/exam/scanDetail.vue')
       },
-      {
-        path: 'score',
-        name: 'score',
-        component: () => import('@/views/exam/score.vue')
-      },
+      
       {
         path: 'examList',
         name: 'examList',
         component: () => import('@/views/exam/examList.vue')
       },
+      {
+        path: 'analysis',
+        name: 'analysis',
+        component: () => import('@/views/analysis/index.vue'),
+        children:[
+          {
+            path: 'score',
+            name: 'score',
+            component: () => import('@/views/analysis/score.vue')
+          }
+        ]
+      },
     ]
   },
   {

+ 26 - 0
src/views/analysis/index.vue

@@ -0,0 +1,26 @@
+<template>
+    <!-- 成绩查询 首页 -->
+  <div >
+    
+  </div>
+</template>
+<script lang="ts" setup>
+import { useExamStore } from '@/store/exam'
+import { useRouter } from 'vue-router'
+import { onMounted ,ref} from 'vue';
+
+// 实例化 Store
+const examStore = useExamStore()
+const router = useRouter()
+
+
+onMounted(() => {
+  
+
+  
+})
+</script>
+ 
+<style lang="scss" scoped>
+
+</style>

+ 3 - 7
src/views/exam/score.vue → src/views/analysis/score.vue

@@ -1,6 +1,6 @@
 <template>
-    <!-- 成绩查询 -->
-  <div class="aside_container">
+    <!-- 成绩查询 成绩单 -->
+  <div >
     
   </div>
 </template>
@@ -16,11 +16,7 @@ const router = useRouter()
 
 onMounted(() => {
   
-    if (!examStore.currentExam) {
-        console.warn('当前没有选中的考试信息')
-        // 可选:如果没有数据,可以重定向回列表页或提示用户
-    }
-    
+
   
 })
 </script>

+ 1 - 1
src/views/exam/components/stepItem.vue

@@ -72,7 +72,7 @@ const menuList = computed(() => {
     list = [
       { name: '试题结构', number: '1', path: 'question', desc: '建立考试试题结构、设置标答、分组等信息', status: 0 },
       { name: '扫描学生', number: '2', path: 'scanList', desc: '扫描学生,处理扫描异常学生等', status: 0 },
-      { name: '成绩查询', number: '3', path: 'score', desc: '设置每个主观题下的划分区信息及位置', status: 0 ,
+      { name: '成绩查询', number: '3', path: 'analysis', desc: '设置每个主观题下的划分区信息及位置', status: 0 ,
         menu:[
           { name: '成绩单', path: 'score' },
           { name: '错题分析', path: 'errorAnalysis' },