routes-teacher.ts 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. import Auth from '@/views/layout/auth'
  2. import { router, rootRouter } from './routes-common'
  3. /**
  4. * 配置类型
  5. */
  6. type metaType = {
  7. isRegister: boolean // 是否可注册
  8. }
  9. // 不需要登录的路由
  10. const noLoginRouter = []
  11. export default [
  12. {
  13. path: '/',
  14. component: Auth,
  15. children: [
  16. ...router,
  17. {
  18. path: '/login',
  19. name: 'login',
  20. component: () => import('@/views/layout/login'),
  21. meta: {
  22. isRegister: false
  23. } as metaType
  24. },
  25. {
  26. path: '/home',
  27. name: 'home',
  28. component: () => import('@/teacher/home/index')
  29. },
  30. {
  31. path: '/exercise-record',
  32. name: 'exercise-record',
  33. component: () => import('@/views/exercise-record'),
  34. meta: {
  35. title: '练习记录'
  36. }
  37. },
  38. {
  39. path: '/exercis-detail',
  40. name: 'exercis-detail',
  41. component: () => import('@/views/exercise-record/exercis-detail'),
  42. meta: {
  43. title: '练习统计'
  44. }
  45. },
  46. {
  47. path: '/attendance-manage',
  48. name: 'attendance-manage',
  49. component: () => import('@/teacher/attendance-manage/index'),
  50. meta: {
  51. title: '考勤管理'
  52. }
  53. },
  54. {
  55. path: '/student-att-day',
  56. name: 'student-att-day',
  57. component: () => import('@/school/attendance/student-att-day'),
  58. meta: {
  59. title: '考勤详情'
  60. }
  61. },
  62. {
  63. path: '/attendance',
  64. name: 'attendance',
  65. component: () => import('@/teacher/attendance/index'),
  66. meta: {
  67. title: '我的考勤'
  68. }
  69. },
  70. {
  71. path: '/teacher-attendDetail',
  72. name: 'teacher-attendDetail',
  73. component: () => import('@/school/attendance/components/teacher-attendDetail'),
  74. meta: {
  75. title: '考勤详情'
  76. }
  77. },
  78. {
  79. path: '/attendance-rule',
  80. name: 'attendance-rule',
  81. component: () => import('@/views/attendance-rule/index'),
  82. meta: {
  83. title: '考勤规则'
  84. }
  85. },
  86. {
  87. path: '/screen-projection',
  88. name: 'screen-projection',
  89. component: () => import('@/teacher/screen-projection/index'),
  90. meta: {
  91. title: '教学课件'
  92. }
  93. },
  94. {
  95. path: '/unit-list',
  96. name: 'unit-list',
  97. component: () => import('@/views/unit-test/unit-list/index'),
  98. meta: {
  99. title: '阶段自测'
  100. }
  101. },
  102. {
  103. path: '/unit-create',
  104. name: 'unit-create',
  105. component: () => import('@/views/unit-test/unit-create/index'),
  106. meta: {
  107. title: '新增测验'
  108. }
  109. },
  110. {
  111. path: '/unit-Lesson',
  112. name: 'unit-Lesson',
  113. component: () => import('@/views/unit-test/unit-create/unit-Lesson'),
  114. meta: {
  115. title: '选择教材'
  116. }
  117. },
  118. {
  119. path: '/uni-test',
  120. name: 'uni-test',
  121. component: () => import('@/views/unit-test/unit-create/uni-test'),
  122. meta: {
  123. title: '选择教材'
  124. }
  125. },
  126. {
  127. path: '/uni-last',
  128. name: 'uni-last',
  129. component: () => import('@/views/unit-test/unit-create/uni-last'),
  130. meta: {
  131. title: '阶段自测'
  132. }
  133. },
  134. {
  135. path: '/unit-edit-test',
  136. name: 'unit-edit-test',
  137. component: () => import('@/views/unit-test/unit-create/unit-edit-test'),
  138. meta: {
  139. title: '编辑内容'
  140. }
  141. },
  142. {
  143. path: '/add-unit-item',
  144. name: 'add-unit-item',
  145. component: () => import('@/views/unit-test/unit-create/unit-edit-test/add-unit-item'),
  146. meta: {
  147. title: '添加测验曲目'
  148. }
  149. },
  150. {
  151. path: '/unitDetail',
  152. name: 'unitDetail',
  153. component: () => import('@/views/unit-test/unit-list/unitDetail'),
  154. meta: {
  155. title: '测验详情'
  156. }
  157. },
  158. {
  159. path: '/subsidy-exercise-details',
  160. name: 'subsidy-exercise-details',
  161. component: () => import('@/school/approval-manage/subsidy/details'),
  162. meta: {
  163. title: '补助明细'
  164. }
  165. },
  166. {
  167. path: '/school-photo',
  168. name: 'school-photo',
  169. component: () => import('@/school/orchestra/compontent/photo'),
  170. meta: {
  171. title: '乐团相册'
  172. }
  173. },
  174. {
  175. path: '/photo-detail',
  176. name: 'photo-detail',
  177. component: () => import('@/school/orchestra/compontent/photo-detail'),
  178. meta: {
  179. title: '相册详情'
  180. }
  181. },
  182. {
  183. path: '/orchestra-photo-create',
  184. name: 'orchestra-photo-create',
  185. component: () => import('@/school/orchestra/compontent/photo-create'),
  186. meta: {
  187. title: '创建相册'
  188. }
  189. }
  190. ]
  191. },
  192. ...rootRouter,
  193. ...noLoginRouter
  194. ]