|
@@ -5,12 +5,397 @@ import { Notification } from 'element-ui';
|
|
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
+const system = [
|
|
|
+ // 缺少培训批次
|
|
|
+ {
|
|
|
+ path: '/train/batch/index',
|
|
|
+ name: 'train_batch_index',
|
|
|
+ meta: { title: '培训批次管理' },
|
|
|
+ component: () => import('@/views/train-batch/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/dept/index',
|
|
|
+ name: 'dept_index',
|
|
|
+ meta: { title: '部门', sub: '管理' },
|
|
|
+ component: () => import('@/views/dept/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/dept/detail',
|
|
|
+ name: 'dept_detail',
|
|
|
+ meta: { title: '部门', sub: '详情' },
|
|
|
+ component: () => import('@/views/dept/detail.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/director/index',
|
|
|
+ name: 'director_index',
|
|
|
+ meta: { title: '班主任', sub: '管理' },
|
|
|
+ component: () => import('@/views/director/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/director/detail',
|
|
|
+ name: 'director_detail',
|
|
|
+ meta: { title: '班主任', sub: '详情' },
|
|
|
+ component: () => import('@/views/director/detail.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/teacher/detail',
|
|
|
+ name: 'teacher_detail',
|
|
|
+ meta: { title: '教师', sub: '详情' },
|
|
|
+ component: () => import('@/views/teacher/detail.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/teacher/index',
|
|
|
+ name: 'teacher_index',
|
|
|
+ meta: { title: '教师', sub: '管理' },
|
|
|
+ component: () => import('@/views/teacher/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/teacher/means',
|
|
|
+ name: 'teacher_means',
|
|
|
+ component: () => import('@/views/teacher/means.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/teacher/verify',
|
|
|
+ name: 'teacher_verify',
|
|
|
+ meta: { title: '教师', sub: '审核页' },
|
|
|
+ component: () => import('@/views/teacher/verify.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/school/index',
|
|
|
+ name: 'school_index',
|
|
|
+ meta: { title: '学校管理', sub: '' },
|
|
|
+ component: () => import('@/views/school/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/school/detail',
|
|
|
+ name: 'school_detail',
|
|
|
+ meta: { title: '学校信息', sub: '' },
|
|
|
+ component: () => import('@/views/school/detail.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/location/index',
|
|
|
+ name: 'location_index',
|
|
|
+ meta: { title: '地点', sub: '管理' },
|
|
|
+ component: () => import('@/views/location/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/location/detail',
|
|
|
+ name: 'location_detail',
|
|
|
+ meta: { title: '地点', sub: '详情' },
|
|
|
+ component: () => import('@/views/location/detail.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/bedroom/index',
|
|
|
+ name: 'bedroom_index',
|
|
|
+ meta: { title: '寝室', sub: '管理' },
|
|
|
+ component: () => import('@/views/bedroom/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/bedroom/detail',
|
|
|
+ name: 'bedroom_detail',
|
|
|
+ meta: { title: '寝室', sub: '详情' },
|
|
|
+ component: () => import('@/views/bedroom/detail.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/subject/index',
|
|
|
+ name: 'subject_index',
|
|
|
+ meta: { title: '科目', sub: '管理' },
|
|
|
+ component: () => import('@/views/subject/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/subject/detail',
|
|
|
+ name: 'subject_detail',
|
|
|
+ meta: { title: '科目', sub: '详情' },
|
|
|
+ component: () => import('@/views/subject/detail.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/work/detail',
|
|
|
+ name: 'work_detail',
|
|
|
+ meta: { title: '作业', sub: '详情' },
|
|
|
+ component: () => import('@/views/work/detail.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/work/index',
|
|
|
+ name: 'work_index',
|
|
|
+ meta: { title: '作业', sub: '管理' },
|
|
|
+ component: () => import('@/views/work/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/work/look',
|
|
|
+ name: 'work_look',
|
|
|
+ meta: { title: '作业题', sub: '管理' },
|
|
|
+ component: () => import('@/views/work/look.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/duty/index',
|
|
|
+ name: 'duty_index',
|
|
|
+ meta: { title: '职责', sub: '说明' },
|
|
|
+ component: () => import('@/views/duty/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/lesson/index',
|
|
|
+ name: 'lesson_index',
|
|
|
+ meta: { title: '课程模板管理', sub: '' },
|
|
|
+ component: () => import('@/views/lesson/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/lesson/detail',
|
|
|
+ name: 'lesson_detail',
|
|
|
+ meta: { title: '课程模板', sub: '' },
|
|
|
+ component: () => import('@/views/lesson/detail.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/questionnaire/index',
|
|
|
+ name: 'questionnaire_index',
|
|
|
+ meta: { title: '问卷', sub: '管理' },
|
|
|
+ component: () => import('@/views/questionnaire/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/questionnaire/detail',
|
|
|
+ name: 'questionnaire_detail',
|
|
|
+ meta: { title: '问卷', sub: '详情' },
|
|
|
+ component: () => import('@/views/questionnaire/detail.vue'),
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ path: '/questionstate/index',
|
|
|
+ name: 'questionstate_index',
|
|
|
+ meta: { title: '问卷进度管理', sub: '' },
|
|
|
+ component: () => import('@/views/questionstate/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/itembank/detail',
|
|
|
+ name: 'itembank_detail',
|
|
|
+ meta: { title: '题库', sub: '详情' },
|
|
|
+ component: () => import('@/views/Itembank/detail.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/itembank/index',
|
|
|
+ name: 'itembank_index',
|
|
|
+ meta: { title: '题库', sub: '管理' },
|
|
|
+ component: () => import('@/views/Itembank/index.vue'),
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // path: '/classes/index',
|
|
|
+ // name: 'classes_index',
|
|
|
+ // meta: { title: '班级', sub: '管理' },
|
|
|
+ // component: () => import('@/views/classes/index.vue'),
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // path: '/classes/detail',
|
|
|
+ // name: 'classes_detail',
|
|
|
+ // meta: { title: '班级', sub: '详情' },
|
|
|
+ // component: () => import('@/views/classes/detail.vue'),
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ path: '/setting',
|
|
|
+ name: 'setting',
|
|
|
+ meta: { title: '系统邮箱设置' },
|
|
|
+ component: () => import('@/views/setting/system-setting.vue'),
|
|
|
+ },
|
|
|
+];
|
|
|
+const newPlan = [
|
|
|
+ //缺少:当前计划日历;班主任全年安排;学校总人数设置;学校发参培时间;培训计划详表
|
|
|
+ {
|
|
|
+ path: '/plan/index',
|
|
|
+ name: 'newPlan_index',
|
|
|
+ meta: { title: '年度计划管理' },
|
|
|
+ component: () => import('@/views/new-plan/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/plan/template',
|
|
|
+ name: 'newPlan_template',
|
|
|
+ meta: { title: '计划模板' },
|
|
|
+ component: () => import('@/views/new-plan/template.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/plan/arrange',
|
|
|
+ name: 'newPlan_arrange',
|
|
|
+ meta: { title: '培训计划安排' },
|
|
|
+ component: () => import('@/views/new-plan/arrange/arrange.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/plan/director',
|
|
|
+ name: 'newPlan_director',
|
|
|
+ meta: { title: '班主任计划安排' },
|
|
|
+ component: () => import('@/views/new-plan/arrange/director-arrange.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/plan/school/num',
|
|
|
+ name: 'newPlan_school_num',
|
|
|
+ meta: { title: '学校人数安排' },
|
|
|
+ component: () => import('@/views/new-plan/arrange/school-num.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/plan/school/time',
|
|
|
+ name: 'newPlan_school_time',
|
|
|
+ meta: { title: '学校参培时间' },
|
|
|
+ component: () => import('@/views/new-plan/arrange/school-time.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/plan/school',
|
|
|
+ name: 'newPlan_school',
|
|
|
+ meta: { title: '学校计划安排' },
|
|
|
+ component: () => import('@/views/new-plan/arrange/school-arrange.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/plan/classes/detail',
|
|
|
+ name: 'newPlan_classes_detail',
|
|
|
+ meta: { title: '班级安排' },
|
|
|
+ component: () => import('@/views/new-plan/class/classes.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/plan/classes/lesson',
|
|
|
+ name: 'newPlan_classes_lesson',
|
|
|
+ meta: { title: '排课管理' },
|
|
|
+ component: () => import('@/views/new-plan/class/lesson.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/plan/classes/setting',
|
|
|
+ name: 'newPlan_classes_setting',
|
|
|
+ meta: { title: '班级设置' },
|
|
|
+ component: () => import('@/views/new-plan/class/setting.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/plan/classes/bedroom',
|
|
|
+ name: 'newPlan_classes_bedroom',
|
|
|
+ meta: { title: '分寝' },
|
|
|
+ component: () => import('@/views/new-plan/class/bedroom.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/plan/classes/namelist',
|
|
|
+ name: 'newPlan_classes_namelist',
|
|
|
+ meta: { title: '班级人员' },
|
|
|
+ component: () => import('@/views/new-plan/class/name-list.vue'),
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+const train = [
|
|
|
+ //班级设置需要处理,课表管理(按魏老师给的图片做), 通知,学生管理(拿出来,加上searchBar)缺少考勤,学生成绩
|
|
|
+ {
|
|
|
+ path: '/train/plan/classes',
|
|
|
+ name: 'train_plan_classes',
|
|
|
+ meta: { title: '学生分班' },
|
|
|
+ component: () => import('@/views/train-plan/classes.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/train/plan/bedroom',
|
|
|
+ name: 'train_plan_bedroom',
|
|
|
+ meta: { title: '寝室管理' },
|
|
|
+ component: () => import('@/views/train-plan/bedroom.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/train/plan/quest',
|
|
|
+ name: 'train_plan_quest',
|
|
|
+ meta: { title: '非常用问卷管理' },
|
|
|
+ component: () => import('@/views/train-plan/quest.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/train/plan/lesson',
|
|
|
+ name: 'train_plan_lesson',
|
|
|
+ meta: { title: '课表管理管理' },
|
|
|
+ component: () => import('@/views/train-plan/lesson.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/train/plan/term/lesson',
|
|
|
+ name: 'train_plan_term_lesson',
|
|
|
+ meta: { title: '期课表' },
|
|
|
+ component: () => import('@/views/train-plan/term-lesson.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/train/plan/remind',
|
|
|
+ name: 'train_plan_remind',
|
|
|
+ meta: { title: '通知' },
|
|
|
+ component: () => import('@/views/train-plan/remind.vue'),
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ path: '/student/index',
|
|
|
+ name: 'student_index',
|
|
|
+ meta: { title: '学生管理', sub: '' },
|
|
|
+ component: () => import('@/views/student/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/student/detail',
|
|
|
+ name: 'student_detail',
|
|
|
+ meta: { title: '学生详情', sub: '' },
|
|
|
+ component: () => import('@/views/student/detail.vue'),
|
|
|
+ },
|
|
|
+ //报表打印(部分)
|
|
|
+ {
|
|
|
+ path: '/train/plan/print',
|
|
|
+ name: 'train_plan_print',
|
|
|
+ meta: { title: '打印报表' },
|
|
|
+ component: () => import('@/views/train-plan/print.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/certificaate/index',
|
|
|
+ name: 'certificaate_index',
|
|
|
+ meta: { title: '证书', sub: '管理' },
|
|
|
+ component: () => import('@/views/certificaate/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/certificaate/detail',
|
|
|
+ name: 'certificaate_detail',
|
|
|
+ meta: { title: '证书', sub: '详情' },
|
|
|
+ component: () => import('@/views/certificaate/detail.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/certificaate/look',
|
|
|
+ name: 'certificaate_look',
|
|
|
+ meta: { title: '证书', sub: '打印' },
|
|
|
+ component: () => import('@/views/certificaate/look.vue'),
|
|
|
+ },
|
|
|
+ //报表打印结束
|
|
|
+ {
|
|
|
+ path: '/train/plan/leave',
|
|
|
+ name: 'train_plan_leave',
|
|
|
+ meta: { title: '请假管理' },
|
|
|
+ component: () => import('@/views/train-plan/leave.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/train/plan/attendance',
|
|
|
+ name: 'train_plan_attendance',
|
|
|
+ meta: { title: '考勤管理' },
|
|
|
+ component: () => import('@/views/train-plan/attendance.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/train/plan/score',
|
|
|
+ name: 'train_plan_score',
|
|
|
+ meta: { title: '学生成绩' },
|
|
|
+ component: () => import('@/views/train-plan/score.vue'),
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+const statistics = [
|
|
|
+ {
|
|
|
+ path: '/statistics/question/index',
|
|
|
+ name: 'statistics_question',
|
|
|
+ meta: { title: '问卷统计' },
|
|
|
+ component: () => import('@/views/statistics/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/statistics/question/detail',
|
|
|
+ name: 'statistics_question_detail',
|
|
|
+ meta: { title: '问卷统计' },
|
|
|
+ component: () => import('@/views/statistics/detail.vue'),
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
const routes = [
|
|
|
{
|
|
|
- path: '/',
|
|
|
- name: 'frame',
|
|
|
+ path: '',
|
|
|
component: () => import('@/views/index.vue'),
|
|
|
children: [
|
|
|
+ {
|
|
|
+ path: '/',
|
|
|
+ name: 'home',
|
|
|
+ component: () => import('@/views/home.vue'),
|
|
|
+ },
|
|
|
+ ...system,
|
|
|
+ ...newPlan,
|
|
|
+ ...train,
|
|
|
+ ...statistics,
|
|
|
{
|
|
|
path: '/list',
|
|
|
name: 'test_list',
|
|
@@ -22,229 +407,42 @@ const routes = [
|
|
|
component: () => import('@/views/test/detail.vue'),
|
|
|
},
|
|
|
|
|
|
- {
|
|
|
- path: '/itembank/detail',
|
|
|
- name: 'itembank_detail',
|
|
|
- meta: { title: '题库', sub: '详情' },
|
|
|
- component: () => import('@/views/Itembank/detail.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/itembank/index',
|
|
|
- name: 'itembank_index',
|
|
|
- meta: { title: '题库', sub: '管理' },
|
|
|
- component: () => import('@/views/Itembank/index.vue'),
|
|
|
- },
|
|
|
-
|
|
|
// {
|
|
|
- // path: '/questionstate/detail',
|
|
|
- // name: 'questionstate_detail',
|
|
|
- // meta: { title: '问卷状态', sub: '详情' },
|
|
|
- // component: () => import('@/views/questionstate/detail.vue'),
|
|
|
+ // path: '/plan/index',
|
|
|
+ // name: 'plan_index',
|
|
|
+ // meta: { title: '计划', sub: '管理' },
|
|
|
+ // component: () => import('@/views/plan/index.vue'),
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // path: '/plan/detail',
|
|
|
+ // name: 'plan_detail',
|
|
|
+ // meta: { title: '计划', sub: '详情' },
|
|
|
+ // component: () => import('@/views/plan/detail.vue'),
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // path: '/plan/classes',
|
|
|
+ // name: 'plan_classes',
|
|
|
+ // meta: { title: '安排', sub: '班级' },
|
|
|
+ // component: () => import('@/views/plan/classes.vue'),
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // path: '/plan/lesson',
|
|
|
+ // name: 'plan_lesson',
|
|
|
+ // meta: { title: '安排', sub: '课程' },
|
|
|
+ // component: () => import('@/views/plan/lesson.vue'),
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // path: '/plan/msg',
|
|
|
+ // name: 'plan_msg',
|
|
|
+ // meta: { title: '发送', sub: '通知' },
|
|
|
+ // component: () => import('@/views/plan/msg.vue'),
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // path: '/plan/question',
|
|
|
+ // name: 'plan_question',
|
|
|
+ // meta: { title: '问卷', sub: '管理' },
|
|
|
+ // component: () => import('@/views/plan/question.vue'),
|
|
|
// },
|
|
|
- {
|
|
|
- path: '/questionstate/index',
|
|
|
- name: 'questionstate_index',
|
|
|
- meta: { title: '问卷状态', sub: '管理' },
|
|
|
- component: () => import('@/views/questionstate/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/certificaate/index',
|
|
|
- name: 'certificaate_index',
|
|
|
- meta: { title: '证书', sub: '管理' },
|
|
|
- component: () => import('@/views/certificaate/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/certificaate/detail',
|
|
|
- name: 'certificaate_detail',
|
|
|
- meta: { title: '证书', sub: '详情' },
|
|
|
- component: () => import('@/views/certificaate/detail.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/certificaate/look',
|
|
|
- name: 'certificaate_look',
|
|
|
- meta: { title: '证书', sub: '打印' },
|
|
|
- component: () => import('@/views/certificaate/look.vue'),
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- path: '/questionnaire/index',
|
|
|
- name: 'questionnaire_index',
|
|
|
- meta: { title: '问卷', sub: '管理' },
|
|
|
- component: () => import('@/views/questionnaire/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/questionnaire/detail',
|
|
|
- name: 'questionnaire_detail',
|
|
|
- meta: { title: '问卷', sub: '详情' },
|
|
|
- component: () => import('@/views/questionnaire/detail.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/teacher/detail',
|
|
|
- name: 'teacher_detail',
|
|
|
- meta: { title: '教师', sub: '详情' },
|
|
|
- component: () => import('@/views/teacher/detail.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/teacher/index',
|
|
|
- name: 'teacher_index',
|
|
|
- meta: { title: '教师', sub: '管理' },
|
|
|
- component: () => import('@/views/teacher/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/teacher/means',
|
|
|
- name: 'teacher_means',
|
|
|
- component: () => import('@/views/teacher/means.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/teacher/verify',
|
|
|
- name: 'teacher_verify',
|
|
|
- meta: { title: '教师', sub: '审核页' },
|
|
|
- component: () => import('@/views/teacher/verify.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/work/detail',
|
|
|
- name: 'work_detail',
|
|
|
- meta: { title: '作业', sub: '详情' },
|
|
|
- component: () => import('@/views/work/detail.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/work/index',
|
|
|
- name: 'work_index',
|
|
|
- meta: { title: '作业', sub: '管理' },
|
|
|
- component: () => import('@/views/work/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/work/look',
|
|
|
- name: 'work_look',
|
|
|
- meta: { title: '作业题', sub: '管理' },
|
|
|
- component: () => import('@/views/work/look.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/subject/index',
|
|
|
- name: 'subject_index',
|
|
|
- meta: { title: '科目', sub: '管理' },
|
|
|
- component: () => import('@/views/subject/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/subject/detail',
|
|
|
- name: 'subject_detail',
|
|
|
- meta: { title: '科目', sub: '详情' },
|
|
|
- component: () => import('@/views/subject/detail.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/director/index',
|
|
|
- name: 'director_index',
|
|
|
- meta: { title: '班主任', sub: '管理' },
|
|
|
- component: () => import('@/views/director/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/director/detail',
|
|
|
- name: 'director_detail',
|
|
|
- meta: { title: '班主任', sub: '详情' },
|
|
|
- component: () => import('@/views/director/detail.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/dept/index',
|
|
|
- name: 'dept_index',
|
|
|
- meta: { title: '部门', sub: '管理' },
|
|
|
- component: () => import('@/views/dept/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/dept/detail',
|
|
|
- name: 'dept_detail',
|
|
|
- meta: { title: '部门', sub: '详情' },
|
|
|
- component: () => import('@/views/dept/detail.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/duty/index',
|
|
|
- name: 'duty_index',
|
|
|
- meta: { title: '职责', sub: '说明' },
|
|
|
- component: () => import('@/views/duty/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/location/index',
|
|
|
- name: 'location_index',
|
|
|
- meta: { title: '地点', sub: '管理' },
|
|
|
- component: () => import('@/views/location/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/location/detail',
|
|
|
- name: 'location_detail',
|
|
|
- meta: { title: '地点', sub: '详情' },
|
|
|
- component: () => import('@/views/location/detail.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/bedroom/index',
|
|
|
- name: 'bedroom_index',
|
|
|
- meta: { title: '寝室', sub: '管理' },
|
|
|
- component: () => import('@/views/bedroom/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/bedroom/detail',
|
|
|
- name: 'bedroom_detail',
|
|
|
- meta: { title: '寝室', sub: '详情' },
|
|
|
- component: () => import('@/views/bedroom/detail.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/classes/index',
|
|
|
- name: 'classes_index',
|
|
|
- meta: { title: '班级', sub: '管理' },
|
|
|
- component: () => import('@/views/classes/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/classes/detail',
|
|
|
- name: 'classes_detail',
|
|
|
- meta: { title: '班级', sub: '详情' },
|
|
|
- component: () => import('@/views/classes/detail.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/student/index',
|
|
|
- name: 'student_index',
|
|
|
- meta: { title: '学生', sub: '管理' },
|
|
|
- component: () => import('@/views/student/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/student/detail',
|
|
|
- name: 'student_detail',
|
|
|
- meta: { title: '学生', sub: '详情' },
|
|
|
- component: () => import('@/views/student/detail.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/plan/index',
|
|
|
- name: 'plan_index',
|
|
|
- meta: { title: '计划', sub: '管理' },
|
|
|
- component: () => import('@/views/plan/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/plan/detail',
|
|
|
- name: 'plan_detail',
|
|
|
- meta: { title: '计划', sub: '详情' },
|
|
|
- component: () => import('@/views/plan/detail.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/plan/classes',
|
|
|
- name: 'plan_classes',
|
|
|
- meta: { title: '安排', sub: '班级' },
|
|
|
- component: () => import('@/views/plan/classes.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/plan/lesson',
|
|
|
- name: 'plan_lesson',
|
|
|
- meta: { title: '安排', sub: '课程' },
|
|
|
- component: () => import('@/views/plan/lesson.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/plan/msg',
|
|
|
- name: 'plan_msg',
|
|
|
- meta: { title: '发送', sub: '通知' },
|
|
|
- component: () => import('@/views/plan/msg.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/plan/question',
|
|
|
- name: 'plan_question',
|
|
|
- meta: { title: '问卷', sub: '管理' },
|
|
|
- component: () => import('@/views/plan/question.vue'),
|
|
|
- },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
@@ -275,6 +473,7 @@ const router = new VueRouter({
|
|
|
});
|
|
|
router.beforeEach((to, form, next) => {
|
|
|
store.commit('setUser');
|
|
|
+ store.dispatch('setting/checkCache');
|
|
|
if (to.name === 'login') {
|
|
|
next();
|
|
|
return;
|