routes-school.ts 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. import Auth from '@/views/layout/auth'
  2. import { router, rootRouter } from './routes-common'
  3. type metaType = {
  4. isRegister: boolean
  5. }
  6. // 不需要登录的路由
  7. // companion-teacher-register
  8. const noLoginRouter = [
  9. {
  10. path: '/companion-teacher-register',
  11. name: 'companion-teacher-register',
  12. component: () => import('@/school/companion-teacher/companion-teacher-register'),
  13. meta: {
  14. title: '乐团伴学老师注册'
  15. }
  16. },
  17. {
  18. path: '/manage-teacher-register',
  19. name: 'manage-teacher-register',
  20. component: () => import('@/school/manage-teacher/manage-teacher-register'),
  21. meta: {
  22. title: '乐团管理老师注册'
  23. }
  24. }
  25. ]
  26. export default [
  27. {
  28. path: '/',
  29. component: Auth,
  30. children: [
  31. ...router,
  32. {
  33. path: '/login',
  34. name: 'login',
  35. component: () => import('@/views/layout/login'),
  36. meta: {
  37. isRegister: false
  38. } as metaType
  39. },
  40. {
  41. path: '/home',
  42. name: 'home',
  43. component: () => import('@/school/home/index')
  44. },
  45. {
  46. path: '/my-orchestra',
  47. name: 'my-orchestra',
  48. component: () => import('@/school/orchestra/index'),
  49. meta: {
  50. title: '我的乐团'
  51. }
  52. },
  53. {
  54. path: '/create-orchestra',
  55. name: 'create-orchestra',
  56. component: () => import('@/school/orchestra/create-orchestra/index'),
  57. meta: {
  58. title: '新建乐团'
  59. }
  60. },
  61. {
  62. path: '/create-orchestra-teacher',
  63. name: 'create-orchestra-teacher',
  64. component: () => import('@/school/orchestra/create-orchestra/select-teacher'),
  65. meta: {
  66. title: '选择老师'
  67. }
  68. },
  69. {
  70. path: '/orchestra-detail',
  71. name: 'orchestra-detail',
  72. component: () => import('@/school/orchestra/orchestra-detail'),
  73. meta: {
  74. title: '乐团详情'
  75. }
  76. },
  77. {
  78. path: '/photo-detail',
  79. name: 'photo-detail',
  80. component: () => import('@/school/orchestra/compontent/photo-detail'),
  81. meta: {
  82. title: '相册详情'
  83. }
  84. },
  85. {
  86. path: '/mass-message',
  87. name: 'mass-message',
  88. component: () => import('@/school/mass-message/index'),
  89. meta: {
  90. title: '群发记录'
  91. }
  92. },
  93. {
  94. path: '/create-message',
  95. name: 'create-message',
  96. component: () => import('@/school/mass-message/create-message'),
  97. meta: {
  98. title: '群发消息'
  99. }
  100. },
  101. {
  102. path: '/content-information',
  103. name: 'content-information',
  104. component: () => import('@/school/content-information/index'),
  105. meta: {
  106. title: '资讯管理'
  107. }
  108. },
  109. {
  110. path: '/companion-teacher',
  111. name: 'companion-teacher',
  112. component: () => import('@/school/companion-teacher/index'),
  113. meta: {
  114. title: '伴学老师'
  115. }
  116. },
  117. {
  118. path: '/companion-teacher-detail',
  119. name: 'companion-teacher-detail',
  120. component: () => import('@/school/companion-teacher/companion-detail'),
  121. meta: {
  122. title: '伴学老师详情'
  123. }
  124. },
  125. {
  126. path: '/companion-unbind',
  127. name: 'companion-unbind',
  128. component: () => import('@/school/companion-teacher/unbind'),
  129. meta: {
  130. title: '课程交接'
  131. }
  132. },
  133. {
  134. path: '/manage-teacher',
  135. name: 'manage-teacher',
  136. component: () => import('@/school/manage-teacher/index'),
  137. meta: {
  138. title: '管理老师'
  139. }
  140. },
  141. {
  142. path: '/manage-teacher-detail',
  143. name: 'manage-teacher-detail',
  144. component: () => import('@/school/manage-teacher/manage-detail'),
  145. meta: {
  146. title: '管理老师详情'
  147. }
  148. },
  149. {
  150. path: '/orchestra-information',
  151. name: 'orchestra-information',
  152. component: () => import('@/school/orchestra/orchestra-information'),
  153. meta: {
  154. title: '乐团资讯'
  155. }
  156. },
  157. {
  158. path: '/exercise-record',
  159. name: 'exercise-record',
  160. component: () => import('@/school/exercise-record'),
  161. meta: {
  162. title: '练习记录'
  163. }
  164. },
  165. {
  166. path: '/exercis-detail',
  167. name: 'exercis-detail',
  168. component: () => import('@/school/exercise-record/exercis-detail'),
  169. meta: {
  170. title: '测评详情'
  171. }
  172. },
  173. {
  174. path: '/attendance',
  175. name: 'attendance',
  176. component: () => import('@/school/attendance/index'),
  177. meta: {
  178. title: '异常考勤'
  179. }
  180. },
  181. {
  182. path: '/student-att-day',
  183. name: 'student-att-day',
  184. component: () => import('@/school/attendance/student-att-day'),
  185. meta: {
  186. title: '考勤详情'
  187. }
  188. },
  189. {
  190. path: '/ranking-list',
  191. name: 'ranking-list',
  192. component: () => import('@/school/ranking-list/index'),
  193. meta: {
  194. title: '排行榜'
  195. }
  196. },
  197. {
  198. path: '/approval-manage',
  199. name: 'approval-manage',
  200. component: () => import('@/school/approval-manage/index'),
  201. meta: {
  202. title: '我的审批'
  203. }
  204. },
  205. {
  206. path: '/student-leave',
  207. name: 'student-leave',
  208. component: () => import('@/school/approval-manage/components/student-leave'),
  209. meta: {
  210. title: '审批详情'
  211. }
  212. },
  213. {
  214. path: '/train-planning',
  215. name: 'train-planning',
  216. component: () => import('@/school/train-planning/index'),
  217. meta: {
  218. title: '训练规划'
  219. }
  220. },
  221. {
  222. path: '/train-content',
  223. name: 'train-content',
  224. component: () => import('@/school/train-planning/component/train-content'),
  225. meta: {
  226. title: '训练内容'
  227. }
  228. },
  229. {
  230. path: '/practice-detail',
  231. name: 'practice-detail',
  232. component: () => import('@/school/train-planning/component/practice-detail'),
  233. meta: {
  234. title: '训练详情'
  235. }
  236. },
  237. {
  238. path: '/course-preview',
  239. name: 'course-preview',
  240. component: () => import('@/school/train-planning/component/course-preview'),
  241. meta: {
  242. title: '课程预览'
  243. }
  244. }, {
  245. path: '/course-adjust',
  246. name: 'course-adjust',
  247. component: () => import('@/school/approval-manage/course-adjust'),
  248. meta: {
  249. title: '课程调整'
  250. }
  251. },
  252. {
  253. path: '/school-detail',
  254. name: 'school-detail',
  255. component: () => import('@/school/school-detail/index'),
  256. meta: {
  257. title: '学校信息'
  258. }
  259. },
  260. {
  261. path: '/school-eidt',
  262. name: 'school-eidt',
  263. component: () => import('@/school/school-detail/eidt-school'),
  264. meta: {
  265. title: '修改学校地址'
  266. }
  267. }
  268. //
  269. ]
  270. },
  271. ...rootRouter,
  272. ...noLoginRouter
  273. ]