index.js 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. import Vue from 'vue';
  2. import VueRouter from 'vue-router';
  3. Vue.use(VueRouter);
  4. const routes = [
  5. {
  6. path: '/',
  7. name: 'frame',
  8. component: () => import('@/views/index.vue'),
  9. children: [
  10. {
  11. path: '/list',
  12. name: 'test_list',
  13. component: () => import('@/views/test/list.vue'),
  14. },
  15. {
  16. path: '/detail',
  17. name: 'test_detail',
  18. component: () => import('@/views/test/detail.vue'),
  19. },
  20. {
  21. path: '/itembank/detail',
  22. name: 'itembank_detail',
  23. meta: { title: '题库', sub: '详情' },
  24. component: () => import('@/views/Itembank/detail.vue'),
  25. },
  26. {
  27. path: '/itembank/index',
  28. name: 'itembank_index',
  29. meta: { title: '题库', sub: '管理' },
  30. component: () => import('@/views/Itembank/index.vue'),
  31. },
  32. {
  33. path: '/questionstate/detail',
  34. name: 'questionstate_detail',
  35. meta: { title: '问卷状态', sub: '详情' },
  36. component: () => import('@/views/questionstate/detail.vue'),
  37. },
  38. {
  39. path: '/questionstate/index',
  40. name: 'questionstate_index',
  41. meta: { title: '问卷状态', sub: '管理' },
  42. component: () => import('@/views/questionstate/index.vue'),
  43. },
  44. {
  45. path: '/certificaate/index',
  46. name: 'certificaate_index',
  47. meta: { title: '证书', sub: '管理' },
  48. component: () => import('@/views/certificaate/index.vue'),
  49. },
  50. {
  51. path: '/certificaate/detail',
  52. name: 'certificaate_detail',
  53. meta: { title: '证书', sub: '详情' },
  54. component: () => import('@/views/certificaate/detail.vue'),
  55. },
  56. {
  57. path: '/certificaate/look',
  58. name: 'certificaate_look',
  59. meta: { title: '证书', sub: '打印' },
  60. component: () => import('@/views/certificaate/look.vue'),
  61. },
  62. {
  63. path: '/certificaate/index',
  64. name: 'certificaate_index',
  65. meta: { title: '证书', sub: '管理' },
  66. component: () => import('@/views/certificaate/index.vue'),
  67. },
  68. {
  69. path: '/questionnaire/index',
  70. name: 'questionnaire_index',
  71. meta: { title: '问卷', sub: '管理' },
  72. component: () => import('@/views/questionnaire/index.vue'),
  73. },
  74. {
  75. path: '/questionnaire/detail',
  76. name: 'questionnaire_detail',
  77. meta: { title: '问卷', sub: '详情' },
  78. component: () => import('@/views/questionnaire/detail.vue'),
  79. },
  80. {
  81. path: '/teacher/detail',
  82. name: 'teacher_detail',
  83. meta: { title: '教师', sub: '详情' },
  84. component: () => import('@/views/teacher/detail.vue'),
  85. },
  86. {
  87. path: '/teacher/index',
  88. name: 'teacher_index',
  89. meta: { title: '教师', sub: '管理' },
  90. component: () => import('@/views/teacher/index.vue'),
  91. },
  92. {
  93. path: '/teacher/means',
  94. name: 'teacher_means',
  95. component: () => import('@/views/teacher/means.vue'),
  96. },
  97. {
  98. path: '/teacher/verify',
  99. name: 'teacher_index',
  100. meta: { title: '教师', sub: '审核页' },
  101. component: () => import('@/views/teacher/verify.vue'),
  102. },
  103. {
  104. path: '/work/detail',
  105. name: 'work_detail',
  106. meta: { title: '作业', sub: '详情' },
  107. component: () => import('@/views/work/detail.vue'),
  108. },
  109. {
  110. path: '/work/index',
  111. name: 'work_index',
  112. meta: { title: '作业', sub: '管理' },
  113. component: () => import('@/views/work/index.vue'),
  114. },
  115. {
  116. path: '/work/look',
  117. name: 'work_look',
  118. meta: { title: '作业题', sub: '管理' },
  119. component: () => import('@/views/work/look.vue'),
  120. },
  121. {
  122. path: '/work/lookdetail',
  123. name: 'work_lookdetail',
  124. meta: { title: '作业题', sub: '详情' },
  125. component: () => import('@/views/work/lookdetail.vue'),
  126. },
  127. {
  128. path: '/timeTable/index',
  129. name: 'timeTable_index',
  130. meta: { title: '课程表', sub: '管理' },
  131. component: () => import('@/views/timeTable/index.vue'),
  132. },
  133. {
  134. path: '/subject/index',
  135. name: 'subject_index',
  136. meta: { title: '科目', sub: '管理' },
  137. component: () => import('@/views/subject/index.vue'),
  138. },
  139. {
  140. path: '/subject/detail',
  141. name: 'subject_detail',
  142. meta: { title: '科目', sub: '详情' },
  143. component: () => import('@/views/subject/detail.vue'),
  144. },
  145. {
  146. path: '/director/index',
  147. name: 'director_index',
  148. meta: { title: '班主任', sub: '管理' },
  149. component: () => import('@/views/director/index.vue'),
  150. },
  151. {
  152. path: '/director/detail',
  153. name: 'director_detail',
  154. meta: { title: '班主任', sub: '详情' },
  155. component: () => import('@/views/director/detail.vue'),
  156. },
  157. {
  158. path: '/dept/index',
  159. name: 'dept_index',
  160. meta: { title: '部门', sub: '管理' },
  161. component: () => import('@/views/dept/index.vue'),
  162. },
  163. {
  164. path: '/dept/detail',
  165. name: 'dept_detail',
  166. meta: { title: '部门', sub: '详情' },
  167. component: () => import('@/views/dept/detail.vue'),
  168. },
  169. {
  170. path: '/location/index',
  171. name: 'location_index',
  172. meta: { title: '地点', sub: '管理' },
  173. component: () => import('@/views/location/index.vue'),
  174. },
  175. {
  176. path: '/location/detail',
  177. name: 'location_detail',
  178. meta: { title: '地点', sub: '详情' },
  179. component: () => import('@/views/location/detail.vue'),
  180. },
  181. {
  182. path: '/bedroom/index',
  183. name: 'bedroom_index',
  184. meta: { title: '寝室', sub: '管理' },
  185. component: () => import('@/views/bedroom/index.vue'),
  186. },
  187. {
  188. path: '/bedroom/detail',
  189. name: 'bedroom_detail',
  190. meta: { title: '寝室', sub: '详情' },
  191. component: () => import('@/views/bedroom/detail.vue'),
  192. },
  193. {
  194. path: '/classes/index',
  195. name: 'classes_index',
  196. meta: { title: '班级', sub: '管理' },
  197. component: () => import('@/views/classes/index.vue'),
  198. },
  199. {
  200. path: '/classes/detail',
  201. name: 'classes_detail',
  202. meta: { title: '班级', sub: '详情' },
  203. component: () => import('@/views/classes/detail.vue'),
  204. },
  205. {
  206. path: '/student/index',
  207. name: 'student_index',
  208. meta: { title: '学生', sub: '管理' },
  209. component: () => import('@/views/student/index.vue'),
  210. },
  211. {
  212. path: '/student/detail',
  213. name: 'student_detail',
  214. meta: { title: '学生', sub: '详情' },
  215. component: () => import('@/views/student/detail.vue'),
  216. },
  217. {
  218. path: '/plan/index',
  219. name: 'plan_index',
  220. meta: { title: '计划', sub: '管理' },
  221. component: () => import('@/views/plan/index.vue'),
  222. },
  223. {
  224. path: '/plan/detail',
  225. name: 'plan_detail',
  226. meta: { title: '计划', sub: '详情' },
  227. component: () => import('@/views/plan/detail.vue'),
  228. },
  229. {
  230. path: '/plan/classes',
  231. name: 'plan_classes',
  232. meta: { title: '安排', sub: '班级' },
  233. component: () => import('@/views/plan/classes.vue'),
  234. },
  235. {
  236. path: '/plan/lesson',
  237. name: 'plan_lesson',
  238. meta: { title: '安排', sub: '课程' },
  239. component: () => import('@/views/plan/lesson.vue'),
  240. },
  241. ],
  242. },
  243. ];
  244. const router = new VueRouter({
  245. mode: 'history',
  246. base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROOT_URL + 'center',
  247. routes,
  248. });
  249. export default router;