routes-school.ts 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  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: '/companion-teacher',
  103. name: 'companion-teacher',
  104. component: () => import('@/school/companion-teacher/index'),
  105. meta: {
  106. title: '伴学指导'
  107. }
  108. },
  109. {
  110. path: '/companion-teacher-detail',
  111. name: 'companion-teacher-detail',
  112. component: () => import('@/school/companion-teacher/companion-detail'),
  113. meta: {
  114. title: '伴学指导详情'
  115. }
  116. },
  117. {
  118. path: '/companion-unbind',
  119. name: 'companion-unbind',
  120. component: () => import('@/school/companion-teacher/unbind'),
  121. meta: {
  122. title: '课程交接'
  123. }
  124. },
  125. {
  126. path: '/manage-teacher',
  127. name: 'manage-teacher',
  128. component: () => import('@/school/manage-teacher/index'),
  129. meta: {
  130. title: '管理老师'
  131. }
  132. },
  133. {
  134. path: '/manage-teacher-detail',
  135. name: 'manage-teacher-detail',
  136. component: () => import('@/school/manage-teacher/manage-detail'),
  137. meta: {
  138. title: '管理老师详情'
  139. }
  140. },
  141. {
  142. path: '/save-share-image',
  143. name: 'save-share-image',
  144. component: () => import('@/school/save-share-image/index'),
  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('@/views/exercise-record'),
  161. meta: {
  162. title: '练习记录'
  163. }
  164. },
  165. {
  166. path: '/exercis-detail',
  167. name: 'exercis-detail',
  168. component: () => import('@/views/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: '/teacher-attendDetail',
  191. name: 'teacher-attendDetail',
  192. component: () => import('@/school/attendance/components/teacher-attendDetail'),
  193. meta: {
  194. title: '考勤详情'
  195. }
  196. },
  197. //
  198. {
  199. path: '/ranking-list',
  200. name: 'ranking-list',
  201. component: () => import('@/school/ranking-list/index'),
  202. meta: {
  203. title: '排行榜'
  204. }
  205. },
  206. {
  207. path: '/approval-manage',
  208. name: 'approval-manage',
  209. component: () => import('@/school/approval-manage/index'),
  210. meta: {
  211. title: '代办事项'
  212. }
  213. },
  214. {
  215. path: '/student-leave',
  216. name: 'student-leave',
  217. component: () => import('@/school/approval-manage/components/student-leave'),
  218. meta: {
  219. title: '审批详情'
  220. }
  221. },
  222. {
  223. path: '/train-planning',
  224. name: 'train-planning',
  225. component: () => import('@/school/train-planning/index'),
  226. meta: {
  227. title: '训练规划'
  228. }
  229. },
  230. {
  231. path: '/train-content',
  232. name: 'train-content',
  233. component: () => import('@/school/train-planning/component/train-content'),
  234. meta: {
  235. title: '训练内容'
  236. }
  237. },
  238. {
  239. path: '/practice-detail',
  240. name: 'practice-detail',
  241. component: () => import('@/school/train-planning/component/practice-detail'),
  242. meta: {
  243. title: '训练详情'
  244. }
  245. },
  246. {
  247. path: '/course-preview',
  248. name: 'course-preview',
  249. component: () => import('@/school/train-planning/component/course-preview'),
  250. meta: {
  251. title: '课程预览'
  252. }
  253. },
  254. {
  255. path: '/course-adjust',
  256. name: 'course-adjust',
  257. component: () => import('@/school/approval-manage/course-adjust'),
  258. meta: {
  259. title: '课程调整'
  260. }
  261. },
  262. {
  263. path: '/batch-adjust',
  264. name: 'batch-adjust',
  265. component: () => import('@/school/approval-manage/batch-adjust'),
  266. meta: {
  267. title: '批量调整'
  268. }
  269. },
  270. {
  271. path: '/school-detail',
  272. name: 'school-detail',
  273. component: () => import('@/school/school-detail/index'),
  274. meta: {
  275. title: '学校信息'
  276. }
  277. },
  278. {
  279. path: '/school-eidt',
  280. name: 'school-eidt',
  281. component: () => import('@/school/school-detail/eidt-school'),
  282. meta: {
  283. title: '修改学校地址'
  284. }
  285. },
  286. {
  287. path: '/attendance-rule',
  288. name: 'attendance-rule',
  289. component: () => import('@/views/attendance-rule/index'),
  290. meta: {
  291. title: '考勤规则'
  292. }
  293. },
  294. {
  295. path: '/orchestra-story',
  296. name: 'orchestra-story',
  297. component: () => import('@/school/orchestra-story/index'),
  298. meta: {
  299. title: '乐团事迹'
  300. }
  301. },
  302. {
  303. path: '/story-operation',
  304. name: 'story-operation',
  305. component: () => import('@/school/orchestra-story/story-operation/index'),
  306. meta: {
  307. title: '添加事迹'
  308. }
  309. },
  310. {
  311. path: '/subsidy-exercise-detail',
  312. name: 'subsidy-exercise-detail',
  313. component: () => import('@/school/approval-manage/subsidy/exercise-detail'),
  314. meta: {
  315. title: '训练补助详情'
  316. }
  317. },
  318. {
  319. path: '/subsidy-grant-detail',
  320. name: 'subsidy-grant-detail',
  321. component: () => import('@/school/approval-manage/subsidy/grant-detail'),
  322. meta: {
  323. title: '管理补助详情'
  324. }
  325. },
  326. {
  327. path: '/subsidy-reward-detail',
  328. name: 'subsidy-reward-detail',
  329. component: () => import('@/school/approval-manage/subsidy/reward-detail'),
  330. meta: {
  331. title: '练习奖励详情'
  332. }
  333. },
  334. {
  335. path: '/unitDetail',
  336. name: 'unitDetail',
  337. component: () => import('@/views/unit-test/unit-list/unitDetail'),
  338. meta: {
  339. title: '测验详情'
  340. }
  341. },
  342. {
  343. path: '/unit-list',
  344. name: 'unit-list',
  345. component: () => import('@/views/unit-test/unit-list/index'),
  346. meta: {
  347. title: '单元测验'
  348. }
  349. },
  350. {
  351. path: '/orchestra-photo-create',
  352. name: 'orchestra-photo-create',
  353. component: () => import('@/school/orchestra/compontent/photo-create'),
  354. meta: {
  355. title: '创建相册'
  356. }
  357. },
  358. //
  359. ]
  360. },
  361. ...rootRouter,
  362. ...noLoginRouter
  363. ]