123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368 |
- import Auth from '@/views/layout/auth'
- import { router, rootRouter } from './routes-common'
- type metaType = {
- isRegister: boolean
- }
- // 不需要登录的路由
- // companion-teacher-register
- const noLoginRouter = [
- {
- path: '/companion-teacher-register',
- name: 'companion-teacher-register',
- component: () => import('@/school/companion-teacher/companion-teacher-register'),
- meta: {
- title: '乐团伴学指导注册'
- }
- },
- {
- path: '/manage-teacher-register',
- name: 'manage-teacher-register',
- component: () => import('@/school/manage-teacher/manage-teacher-register'),
- meta: {
- title: '乐团管理老师注册'
- }
- }
- ]
- 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('@/school/home/index')
- },
- {
- path: '/my-orchestra',
- name: 'my-orchestra',
- component: () => import('@/school/orchestra/index'),
- meta: {
- title: '我的乐团'
- }
- },
- {
- path: '/create-orchestra',
- name: 'create-orchestra',
- component: () => import('@/school/orchestra/create-orchestra/index'),
- meta: {
- title: '新建乐团'
- }
- },
- {
- path: '/create-orchestra-teacher',
- name: 'create-orchestra-teacher',
- component: () => import('@/school/orchestra/create-orchestra/select-teacher'),
- meta: {
- title: '选择老师'
- }
- },
- {
- path: '/orchestra-detail',
- name: 'orchestra-detail',
- component: () => import('@/school/orchestra/orchestra-detail'),
- meta: {
- title: '乐团详情'
- }
- },
- {
- path: '/photo-detail',
- name: 'photo-detail',
- component: () => import('@/school/orchestra/compontent/photo-detail'),
- meta: {
- title: '相册详情'
- }
- },
- {
- path: '/mass-message',
- name: 'mass-message',
- component: () => import('@/school/mass-message/index'),
- meta: {
- title: '群发记录'
- }
- },
- {
- path: '/create-message',
- name: 'create-message',
- component: () => import('@/school/mass-message/create-message'),
- meta: {
- title: '群发消息'
- }
- },
- {
- path: '/companion-teacher',
- name: 'companion-teacher',
- component: () => import('@/school/companion-teacher/index'),
- meta: {
- title: '伴学指导'
- }
- },
- {
- path: '/companion-teacher-detail',
- name: 'companion-teacher-detail',
- component: () => import('@/school/companion-teacher/companion-detail'),
- meta: {
- title: '伴学指导详情'
- }
- },
- {
- path: '/companion-unbind',
- name: 'companion-unbind',
- component: () => import('@/school/companion-teacher/unbind'),
- meta: {
- title: '课程交接'
- }
- },
- {
- path: '/manage-teacher',
- name: 'manage-teacher',
- component: () => import('@/school/manage-teacher/index'),
- meta: {
- title: '管理老师'
- }
- },
- {
- path: '/manage-teacher-detail',
- name: 'manage-teacher-detail',
- component: () => import('@/school/manage-teacher/manage-detail'),
- meta: {
- title: '管理老师详情'
- }
- },
- {
- path: '/save-share-image',
- name: 'save-share-image',
- component: () => import('@/school/save-share-image/index'),
- meta: {
- title: '注册'
- }
- },
- {
- path: '/orchestra-information',
- name: 'orchestra-information',
- component: () => import('@/school/orchestra/orchestra-information'),
- meta: {
- title: '乐团资讯'
- }
- },
- {
- 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',
- name: 'attendance',
- component: () => import('@/school/attendance/index'),
- meta: {
- title: '异常考勤'
- }
- },
- {
- path: '/student-att-day',
- name: 'student-att-day',
- component: () => import('@/school/attendance/student-att-day'),
- meta: {
- title: '考勤详情'
- }
- },
- {
- path: '/teacher-attendDetail',
- name: 'teacher-attendDetail',
- component: () => import('@/school/attendance/components/teacher-attendDetail'),
- meta: {
- title: '考勤详情'
- }
- },
- //
- {
- path: '/ranking-list',
- name: 'ranking-list',
- component: () => import('@/school/ranking-list/index'),
- meta: {
- title: '排行榜'
- }
- },
- {
- path: '/approval-manage',
- name: 'approval-manage',
- component: () => import('@/school/approval-manage/index'),
- meta: {
- title: '代办事项'
- }
- },
- {
- path: '/student-leave',
- name: 'student-leave',
- component: () => import('@/school/approval-manage/components/student-leave'),
- meta: {
- title: '审批详情'
- }
- },
- {
- path: '/train-planning',
- name: 'train-planning',
- component: () => import('@/school/train-planning/index'),
- meta: {
- title: '训练规划'
- }
- },
- {
- path: '/train-content',
- name: 'train-content',
- component: () => import('@/school/train-planning/component/train-content'),
- meta: {
- title: '训练内容'
- }
- },
- {
- path: '/practice-detail',
- name: 'practice-detail',
- component: () => import('@/school/train-planning/component/practice-detail'),
- meta: {
- title: '训练详情'
- }
- },
- {
- path: '/course-preview',
- name: 'course-preview',
- component: () => import('@/school/train-planning/component/course-preview'),
- meta: {
- title: '课程预览'
- }
- },
- {
- path: '/course-adjust',
- name: 'course-adjust',
- component: () => import('@/school/approval-manage/course-adjust'),
- meta: {
- title: '课程调整'
- }
- },
- {
- path: '/batch-adjust',
- name: 'batch-adjust',
- component: () => import('@/school/approval-manage/batch-adjust'),
- meta: {
- title: '批量调整'
- }
- },
- {
- path: '/school-detail',
- name: 'school-detail',
- component: () => import('@/school/school-detail/index'),
- meta: {
- title: '学校信息'
- }
- },
- {
- path: '/school-eidt',
- name: 'school-eidt',
- component: () => import('@/school/school-detail/eidt-school'),
- meta: {
- title: '修改学校地址'
- }
- },
- {
- path: '/attendance-rule',
- name: 'attendance-rule',
- component: () => import('@/views/attendance-rule/index'),
- meta: {
- title: '考勤规则'
- }
- },
- {
- path: '/orchestra-story',
- name: 'orchestra-story',
- component: () => import('@/school/orchestra-story/index'),
- meta: {
- title: '乐团事迹'
- }
- },
- {
- path: '/story-operation',
- name: 'story-operation',
- component: () => import('@/school/orchestra-story/story-operation/index'),
- meta: {
- title: '添加事迹'
- }
- },
- {
- path: '/subsidy-exercise-detail',
- name: 'subsidy-exercise-detail',
- component: () => import('@/school/approval-manage/subsidy/exercise-detail'),
- meta: {
- title: '训练补助详情'
- }
- },
- {
- path: '/subsidy-grant-detail',
- name: 'subsidy-grant-detail',
- component: () => import('@/school/approval-manage/subsidy/grant-detail'),
- meta: {
- title: '管理补助详情'
- }
- },
- {
- path: '/subsidy-reward-detail',
- name: 'subsidy-reward-detail',
- component: () => import('@/school/approval-manage/subsidy/reward-detail'),
- meta: {
- title: '练习奖励详情'
- }
- },
- {
- path: '/unitDetail',
- name: 'unitDetail',
- component: () => import('@/views/unit-test/unit-list/unitDetail'),
- meta: {
- title: '测验详情'
- }
- },
- {
- path: '/unit-list',
- name: 'unit-list',
- component: () => import('@/views/unit-test/unit-list/index'),
- meta: {
- title: '单元测验'
- }
- },
- {
- path: '/orchestra-photo-create',
- name: 'orchestra-photo-create',
- component: () => import('@/school/orchestra/compontent/photo-create'),
- meta: {
- title: '创建相册'
- }
- },
- //
- ]
- },
- ...rootRouter,
- ...noLoginRouter
- ]
|