123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- import Auth from '@/views/layout/auth'
- import { router, rootRouter } from './routes-common'
- /**
- * 配置类型
- */
- type metaType = {
- isRegister: boolean // 是否可注册
- }
- // 不需要登录的路由
- const noLoginRouter = []
- export default [
- {
- path: '/',
- component: Auth,
- children: [
- ...router,
- {
- path: '/login',
- name: 'login',
- component: () => import('@/views/layout/login'),
- meta: {
- isRegister: false
- } as metaType
- },
- {
- path: '/home',
- name: 'home',
- component: () => import('@/teacher/home/index')
- },
- {
- path: '/exercise-record',
- name: 'exercise-record',
- component: () => import('@/views/exercise-record'),
- meta: {
- title: '练习记录'
- }
- },
- {
- path: '/exercis-detail',
- name: 'exercis-detail',
- component: () => import('@/views/exercise-record/exercis-detail'),
- meta: {
- title: '练习统计'
- }
- },
- {
- path: '/attendance-manage',
- name: 'attendance-manage',
- component: () => import('@/teacher/attendance-manage/index'),
- meta: {
- title: '考勤管理'
- }
- },
- {
- path: '/student-att-day',
- name: 'student-att-day',
- component: () => import('@/school/attendance/student-att-day'),
- meta: {
- title: '考勤详情'
- }
- },
- {
- path: '/attendance',
- name: 'attendance',
- component: () => import('@/teacher/attendance/index'),
- meta: {
- title: '我的考勤'
- }
- },
- {
- path: '/teacher-attendDetail',
- name: 'teacher-attendDetail',
- component: () => import('@/school/attendance/components/teacher-attendDetail'),
- meta: {
- title: '考勤详情'
- }
- },
- {
- path: '/attendance-rule',
- name: 'attendance-rule',
- component: () => import('@/views/attendance-rule/index'),
- meta: {
- title: '考勤规则'
- }
- },
- {
- path: '/screen-projection',
- name: 'screen-projection',
- component: () => import('@/teacher/screen-projection/index'),
- meta: {
- title: '教学课件'
- }
- },
- {
- path: '/unit-list',
- name: 'unit-list',
- component: () => import('@/views/unit-test/unit-list/index'),
- meta: {
- title: '阶段自测'
- }
- },
- {
- path: '/unit-create',
- name: 'unit-create',
- component: () => import('@/views/unit-test/unit-create/index'),
- meta: {
- title: '新增测验'
- }
- },
- {
- path: '/unit-Lesson',
- name: 'unit-Lesson',
- component: () => import('@/views/unit-test/unit-create/unit-Lesson'),
- meta: {
- title: '选择教材'
- }
- },
- {
- path: '/uni-test',
- name: 'uni-test',
- component: () => import('@/views/unit-test/unit-create/uni-test'),
- meta: {
- title: '选择教材'
- }
- },
- {
- path: '/uni-last',
- name: 'uni-last',
- component: () => import('@/views/unit-test/unit-create/uni-last'),
- meta: {
- title: '阶段自测'
- }
- },
- {
- path: '/unit-edit-test',
- name: 'unit-edit-test',
- component: () => import('@/views/unit-test/unit-create/unit-edit-test'),
- meta: {
- title: '编辑内容'
- }
- },
- {
- path: '/add-unit-item',
- name: 'add-unit-item',
- component: () => import('@/views/unit-test/unit-create/unit-edit-test/add-unit-item'),
- meta: {
- title: '添加测验曲目'
- }
- },
- {
- path: '/unitDetail',
- name: 'unitDetail',
- component: () => import('@/views/unit-test/unit-list/unitDetail'),
- meta: {
- title: '测验详情'
- }
- },
- {
- path: '/subsidy-exercise-details',
- name: 'subsidy-exercise-details',
- component: () => import('@/school/approval-manage/subsidy/details'),
- meta: {
- title: '补助明细'
- }
- },
- {
- path: '/school-photo',
- name: 'school-photo',
- component: () => import('@/school/orchestra/compontent/photo'),
- meta: {
- title: '乐团相册'
- }
- },
- {
- path: '/photo-detail',
- name: 'photo-detail',
- component: () => import('@/school/orchestra/compontent/photo-detail'),
- meta: {
- title: '相册详情'
- }
- },
- {
- path: '/orchestra-photo-create',
- name: 'orchestra-photo-create',
- component: () => import('@/school/orchestra/compontent/photo-create'),
- meta: {
- title: '创建相册'
- }
- }
- ]
- },
- ...rootRouter,
- ...noLoginRouter
- ]
|