From 241255fbe2b6db3b2ed263f1e5a9956f5f9a0ee2 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 11 六月 2024 11:40:58 +0800 Subject: [PATCH] 考试管理 --- src/router.js | 48 +++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 43 insertions(+), 5 deletions(-) diff --git a/src/router.js b/src/router.js index 42a63a2..4fdb4f0 100644 --- a/src/router.js +++ b/src/router.js @@ -45,7 +45,7 @@ { path: '/', name: 'examIndex', - component: () => import('@/views/Exam/Exam.vue') + component: () => import('@/views/Exam/ExamManage.vue') }, { path: 'myexam', @@ -88,7 +88,8 @@ { path: 'teacher-manage', name: 'teacherManage', - component: () => import('@/views/Manage/Education/TeacherManage.vue') + component: () => import('@/views/Manage/Education/TeacherManage.vue'), + meta: { title: '鏁欏笀绠$悊' } }, // 鏁欏笀浠嬬粛 { @@ -102,11 +103,23 @@ name: 'attendanceRecord', component: () => import('@/views/Manage/AttendanceRecord/index.vue') }, - // 鎴愮哗鏌ヨ + // 绛斿嵎鍒楄〃 { path: 'score-inquiry', name: 'ScoreInquiry', component: () => import('@/views/Manage/ScoreInquiry/index.vue') + }, + // 绛斿嵎鎴愮哗 + { + path: 'answer-list', + name: 'ScoreInquiry', + component: () => import('@/views/Manage/ScoreInquiry/list.vue') + }, + // 绛斿嵎璇︽儏 + { + path: 'answer-detail', + name: 'ScoreInquiry', + component: () => import('@/views/Manage/ScoreInquiry/detail.vue') }, // 瀛﹀垎璁$畻瑙勫垯 { @@ -119,18 +132,33 @@ path: 'test-paper', name: 'TestPaper', component: () => import('@/views/Manage/TestPaper/index.vue'), + meta: { title: '璇曞嵎绠$悊' } }, // 棰樺簱绠$悊 { path: 'question-bank', name: 'QuestionBank', component: () => import('@/views/Manage/TestPaper/QuestionBank.vue'), + meta: { title: '棰樺簱绠$悊' } + }, + // 绉戠洰绠$悊 + { + path: 'subject', + name: 'subject', + component: () => import('@/views/Manage/TestPaper/subject.vue'), + meta: { title: '绉戠洰绠$悊' } }, // 璇曞嵎鐢熸垚 { path: 'test-paper-generation', name: 'TestPaperGeneration', component: () => import('@/views/Manage/TestPaper/TestPaperGeneration.vue') + }, + //闅忔満璇曞嵎妯℃澘绠$悊 + { + path: 'paper-template', + name: 'PaperTemplate', + component: () => import('@/views/Manage/TestPaper/PaperTemplate.vue') }, // 鐝骇绠$悊 { @@ -141,11 +169,13 @@ { path: '/', name: 'ClassManagementIndex', - component: () => import('@/views/Manage/ClassManagement/Class.vue') + component: () => import('@/views/Manage/ClassManagement/Class.vue'), + meta: { title: '鐝骇绠$悊' } }, { path: 'Class-staff', name: 'ClassStaff', - component: () => import('@/views/Manage/ClassManagement/ClassStaff.vue') + component: () => import('@/views/Manage/ClassManagement/ClassStaff.vue'), + meta: { title: '鐝骇鎴愬憳绠$悊' } } ] }, @@ -208,6 +238,14 @@ routes: constantRoutes }) + +router.beforeEach((to,from,next)=>{ + if(to.meta.title){//鍒ゆ柇鏄惁鏈夋爣棰� + document.title = to.meta.title + } + next() //鎵ц杩涘叆璺敱锛屽鏋滀笉鍐欏氨涓嶄細杩涘叆鐩爣椤� +}) + export { constantRoutes, router -- Gitblit v1.8.0