From a7cd5b2d39f856a72d901906a61af00b4e2039a6 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期五, 19 七月 2024 09:45:43 +0800
Subject: [PATCH] fix:科目下拉
---
src/router.js | 335 +++++++++++++++++++++++++++++++++++--------------------
1 files changed, 210 insertions(+), 125 deletions(-)
diff --git a/src/router.js b/src/router.js
index 6fb3e17..9a3b6a7 100644
--- a/src/router.js
+++ b/src/router.js
@@ -26,7 +26,7 @@
{
path: '/',
component: Layout,
- redirect: '/dashboard',
+ redirect: '/login',
children: [
{
path: 'dashboard',
@@ -72,6 +72,18 @@
hidden: true
},
{
+ path: 'departmentExamine/list',
+ component: () => import('@/views/user/departmentExamine/list'),
+ name: 'departmentExamineList',
+ meta: { title: '璋冨姩瀹℃牳', noCache: true }
+ },
+ {
+ path: 'UserConditionExamine/list',
+ component: () => import('@/views/user/UserConditionExamine/list'),
+ name: 'UserConditionExamineList',
+ meta: { title: '鐘舵�佸鏍�', noCache: true }
+ },
+ {
path: 'tag/list',
component: () => import('@/views/user/tag/list'),
name: 'TagAdminPageList',
@@ -87,21 +99,40 @@
]
},
{
- path: '/online/study',
+ path: '/education',
component: Layout,
- name: 'OnLineStudy',
+ name: 'EducationPage',
meta: {
- title: '鍦ㄧ嚎瀛︿範',
- icon: 'exam'
+ title: '閮ㄩ棬绠$悊',
+ icon: 'education'
},
+ alwaysShow: true,
children: [
{
- path: 'video/type',
- component: () => import('@/views/onlineStudy/video/type'),
- name: 'VideoType',
- meta: {
- title: '瑙嗛鍒嗙被', noCache: true
- }
+ path: 'subject/list',
+ component: () => import('@/views/education/subject/list'),
+ name: 'EducationSubjectPage',
+ meta: { title: '閮ㄩ棬璇剧洰', noCache: true }
+ },
+ {
+ path: 'department/list',
+ component: () => import('@/views/education/department/list'),
+ name: 'EducationDepartmentPage',
+ meta: { title: '閮ㄩ棬鍒楄〃', noCache: true }
+ },
+ {
+ path: 'subject/edit',
+ component: () => import('@/views/education/subject/edit'),
+ name: 'EducationSubjectEditPage',
+ meta: { title: '璇剧洰缂栬緫', noCache: true, activeMenu: '/education/subject/list' },
+ hidden: true
+ },
+ {
+ path: 'department/edit',
+ component: () => import('@/views/education/department/edit'),
+ name: 'EducationSubjectEditPage',
+ meta: { title: '閮ㄩ棬缂栬緫', noCache: true, activeMenu: '/education/department/list' },
+ hidden: true
}
]
},
@@ -140,23 +171,29 @@
meta: { title: '鍗曢�夐缂栬緫', noCache: true, activeMenu: '/exam/question/list' },
hidden: true
},
- {
- path: 'simulation/list',
- component: () => import('@/views/exam/simulation/list'),
- name: 'personalSimulationList',
- meta: { title: '妯℃嫙鍒楄〃', noCache: true }
- },
- {
- path: 'personalSimulation/list',
- component: () => import('@/views/exam/personalSimulation/list'),
- name: 'personalSimulation',
- meta: { title: '涓汉妯℃嫙', noCache: true }
- },
+ // {
+ // path: 'simulation/list',
+ // component: () => import('@/views/exam/simulation/list'),
+ // name: 'personalSimulationList',
+ // meta: { title: '妯℃嫙鍒楄〃', noCache: true }
+ // },
+ // {
+ // path: 'personalSimulation/list',
+ // component: () => import('@/views/exam/personalSimulation/list'),
+ // name: 'personalSimulation',
+ // meta: { title: '涓汉妯℃嫙', noCache: true }
+ // },
{
path: 'personalRandomTemplate/list',
component: () => import('@/views/exam/personalRandomTemplate/list'),
name: 'personalSimulation',
meta: { title: '闅忔満璇曞嵎', noCache: true }
+ },
+ {
+ path: 'personalRandomTemplate/config',
+ component: () => import('@/views/exam/personalRandomTemplate/config'),
+ name: 'personalSimulationConfig',
+ meta: { title: '闅忔満璇曞嵎閰嶇疆', noCache: true }
},
{
path: 'personalRandomTemplate/edit',
@@ -178,13 +215,13 @@
name: 'feedback',
meta: { title: '閿欓鍙嶉', noCache: true }
},
- {
- path: 'personalSimulation/list/mathList',
- component: () => import('@/views/exam/mathList/list.vue'),
- name: 'multiplemathList',
- meta: { title: '妯℃嫙鍒楄〃璇︽儏', noCache: true, activeMenu: '/exam/mathList/list' },
- hidden: true
- },
+ // {
+ // path: 'personalSimulation/list/mathList',
+ // component: () => import('@/views/exam/mathList/list.vue'),
+ // name: 'multiplemathList',
+ // meta: { title: '妯℃嫙鍒楄〃璇︽儏', noCache: true, activeMenu: '/exam/mathList/list' },
+ // hidden: true
+ // },
{
path: 'question/edit/multipleChoice',
component: () => import('@/views/exam/question/edit/multiple-choice'),
@@ -216,68 +253,6 @@
]
},
{
- path: '/task',
- component: Layout,
- name: 'TaskPage',
- meta: {
- title: '浠诲姟绠$悊',
- icon: 'task'
- },
- alwaysShow: true,
- children: [
- {
- path: 'list',
- component: () => import('@/views/task/list'),
- name: 'TaskListPage',
- meta: { title: '浠诲姟鍒楄〃', noCache: true }
- },
- {
- path: 'edit',
- component: () => import('@/views/task/edit'),
- name: 'TaskEditPage',
- meta: { title: '浠诲姟鍒涘缓', noCache: true }
- }
- ]
- },
- {
- path: '/education',
- component: Layout,
- name: 'EducationPage',
- meta: {
- title: '閮ㄩ棬绠$悊',
- icon: 'education'
- },
- alwaysShow: true,
- children: [
- {
- path: 'subject/list',
- component: () => import('@/views/education/subject/list'),
- name: 'EducationSubjectPage',
- meta: { title: '璇剧洰鍒楄〃', noCache: true }
- },
- {
- path: 'department/list',
- component: () => import('@/views/education/department/list'),
- name: 'EducationDepartmentPage',
- meta: { title: '閮ㄩ棬鍒楄〃', noCache: true }
- },
- {
- path: 'subject/edit',
- component: () => import('@/views/education/subject/edit'),
- name: 'EducationSubjectEditPage',
- meta: { title: '璇剧洰缂栬緫', noCache: true, activeMenu: '/education/subject/list' },
- hidden: true
- },
- {
- path: 'department/edit',
- component: () => import('@/views/education/department/edit'),
- name: 'EducationSubjectEditPage',
- meta: { title: '閮ㄩ棬缂栬緫', noCache: true, activeMenu: '/education/department/list' },
- hidden: true
- }
- ]
- },
- {
path: '/answer',
component: Layout,
name: 'AnswerPage',
@@ -291,13 +266,19 @@
path: 'list',
component: () => import('@/views/answer/list'),
name: 'AnswerPageList',
- meta: { title: '绛斿嵎鍒楄〃', noCache: true }
+ meta: { title: '绛斿嵎璁板綍', noCache: true }
},
{
path: 'sheetStatistics',
component: () => import('@/views/answer/sheetStatistics.vue'),
name: 'AnswerPageList',
- meta: { title: '绛斿嵎缁熻', noCache: true }
+ meta: { title: '鍒嗘暟缁熻', noCache: true }
+ },
+ {
+ path: 'dataStatistics',
+ component: () => import('@/views/answer/dataStatistics.vue'),
+ name: 'AnswerPageList',
+ meta: { title: '鍒嗘暟缁熻(鍏�)', noCache: true }
},
{
path: 'achievementStatistics',
@@ -311,6 +292,30 @@
name: 'AnswerPageList',
meta: { title: '鎴愮哗缁熻璇︽儏', noCache: true, activeMenu: '/exam/gradeDetails/list' },
hidden: true
+ }
+ ]
+ },
+ {
+ path: '/online/study',
+ component: Layout,
+ name: 'OnLineStudy',
+ meta: {
+ title: '鍦ㄧ嚎瀛︿範',
+ icon: 'exam'
+ },
+ alwaysShow: true,
+ children: [
+ {
+ path: 'type',
+ component: () => import('@/views/onlineStudy/type'),
+ name: 'Type',
+ meta: { title: '瀛︿範绫诲瀷', noCache: true }
+ },
+ {
+ path: 'file',
+ component: () => import('@/views/onlineStudy/file'),
+ name: 'File',
+ meta: { title: '瀛︿範鏂囦欢', noCache: true }
}
]
},
@@ -340,47 +345,71 @@
]
},
{
- path: '/message',
+ path: '/task',
component: Layout,
- name: 'MessagePage',
+ name: 'TaskPage',
meta: {
- title: '娑堟伅涓績',
- icon: 'message'
+ title: '浠诲姟绠$悊',
+ icon: 'task'
},
alwaysShow: true,
children: [
{
path: 'list',
- component: () => import('@/views/message/list'),
- name: 'MessageListPage',
- meta: { title: '娑堟伅鍒楄〃', noCache: true }
+ component: () => import('@/views/task/list'),
+ name: 'TaskListPage',
+ meta: { title: '浠诲姟鍒楄〃', noCache: true }
},
{
- path: 'send',
- component: () => import('@/views/message/send'),
- name: 'MessageSendPage',
- meta: { title: '娑堟伅鍙戦��', noCache: true }
+ path: 'edit',
+ component: () => import('@/views/task/edit'),
+ name: 'TaskEditPage',
+ meta: { title: '浠诲姟鍒涘缓', noCache: true }
}
]
},
- {
- path: '/log',
- component: Layout,
- name: 'LogPage',
- meta: {
- title: '鏃ュ織涓績',
- icon: 'log'
- },
- alwaysShow: true,
- children: [
- {
- path: 'user/list',
- component: () => import('@/views/log/list'),
- name: 'LogUserPage',
- meta: { title: '鐢ㄦ埛鏃ュ織', noCache: true }
- }
- ]
- },
+ // {
+ // path: '/message',
+ // component: Layout,
+ // name: 'MessagePage',
+ // meta: {
+ // title: '娑堟伅涓績',
+ // icon: 'message'
+ // },
+ // alwaysShow: true,
+ // children: [
+ // {
+ // path: 'list',
+ // component: () => import('@/views/message/list'),
+ // name: 'MessageListPage',
+ // meta: { title: '娑堟伅鍒楄〃', noCache: true }
+ // },
+ // {
+ // path: 'send',
+ // component: () => import('@/views/message/send'),
+ // name: 'MessageSendPage',
+ // meta: { title: '娑堟伅鍙戦��', noCache: true }
+ // }
+ // ]
+ // },
+ // {
+ // path: '/log',
+ // component: Layout,
+ // name: 'LogPage',
+ // meta: {
+ // title: '鏃ュ織涓績',
+ // icon: 'log'
+ // },
+ // alwaysShow: true,
+ // children: [
+ // {
+ // path: 'user/list',
+ // component: () => import('@/views/log/list'),
+ // name: 'LogUserPage',
+ // meta: { title: '鐢ㄦ埛鏃ュ織', noCache: true }
+ // }
+ // ]
+ // },
// {
// path: '/meeting',
// component: Layout,
@@ -441,7 +470,7 @@
{
path: '/',
component: Layout,
- redirect: '/dashboard',
+ redirect: '/login',
children: [
{
path: 'dashboard',
@@ -452,6 +481,42 @@
]
},
{
+ path: '/user',
+ component: Layout,
+ name: 'UserPage',
+ meta: {
+ title: '鐢ㄦ埛绠$悊',
+ icon: 'users'
+ },
+ alwaysShow: true,
+ children: [
+ {
+ path: 'student/list',
+ component: () => import('@/views/user/student/list'),
+ name: 'UserStudentPageList',
+ meta: { title: '瀛︾敓鍒楄〃', noCache: true }
+ },
+ {
+ path: 'tag/list',
+ component: () => import('@/views/user/tag/list'),
+ name: 'TagAdminPageList',
+ meta: { title: '瀛︾敓鏍囩', noCache: true }
+ },
+ {
+ path: 'departmentExamine/list',
+ component: () => import('@/views/user/departmentExamine/list'),
+ name: 'departmentExamineList',
+ meta: { title: '璋冨姩鎻愬璁板綍', noCache: true }
+ },
+ {
+ path: 'UserConditionExamine/list',
+ component: () => import('@/views/user/UserConditionExamine/list'),
+ name: 'UserConditionExamineList',
+ meta: { title: '鐘舵�佹彁瀹¤褰�', noCache: true }
+ },
+ ]
+ },
+ {
path: '/exam',
component: Layout,
name: 'ExamPage',
@@ -459,7 +524,21 @@
title: '鍗烽绠$悊',
icon: 'exam'
},
+ alwaysShow: true,
children: [
+ // {
+ // path: 'paper/list',
+ // component: () => import('@/views/exam/paper/list'),
+ // name: 'ExamPaperPageList',
+ // meta: { title: '璇曞嵎鍒楄〃', noCache: true }
+ // },
+ // {
+ // path: 'paper/edit',
+ // component: () => import('@/views/exam/paper/edit'),
+ // name: 'ExamPaperEdit',
+ // meta: { title: '璇曞嵎缂栬緫', noCache: true, activeMenu: '/exam/paper/list' },
+ // hidden: true
+ // },
{
path: 'personalRandomTemplate/list',
component: () => import('@/views/exam/personalRandomTemplate/list'),
@@ -504,7 +583,13 @@
name: 'AnswerPageList',
meta: { title: '鎴愮哗缁熻璇︽儏', noCache: true, activeMenu: '/exam/gradeDetails/list' },
hidden: true
- }
+ },
+ {
+ path: 'sheetStatistics',
+ component: () => import('@/views/answer/sheetStatistics.vue'),
+ name: 'AnswerPageList',
+ meta: { title: '鍒嗘暟缁熻', noCache: true }
+ },
]
},
{
--
Gitblit v1.8.0