index.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. component: () => import('@/views/Itembank/detail.vue'),
  24. },
  25. {
  26. path: '/itembank/index',
  27. name: 'itembank_index',
  28. component: () => import('@/views/Itembank/index.vue'),
  29. },
  30. {
  31. path: '/questionnaire/index',
  32. name: 'questionnaire_index',
  33. component: () => import('@/views/questionnaire/index.vue'),
  34. },
  35. {
  36. path: '/questionnaire/detail',
  37. name: 'questionnaire_detail',
  38. component: () => import('@/views/questionnaire/detail.vue'),
  39. },
  40. {
  41. path: '/teacher/detail',
  42. name: 'teacher_detail',
  43. component: () => import('@/views/teacher/detail.vue'),
  44. },
  45. {
  46. path: '/teacher/index',
  47. name: 'teacher_index',
  48. component: () => import('@/views/teacher/index.vue'),
  49. },
  50. {
  51. path: '/teacher/means',
  52. name: 'teacher_means',
  53. component: () => import('@/views/teacher/means.vue'),
  54. },
  55. {
  56. path: '/work/detail',
  57. name: 'work_detail',
  58. component: () => import('@/views/work/detail.vue'),
  59. },
  60. {
  61. path: '/work/index',
  62. name: 'work_index',
  63. component: () => import('@/views/work/index.vue'),
  64. },
  65. {
  66. path: '/work/look',
  67. name: 'work_look',
  68. component: () => import('@/views/work/look.vue'),
  69. },
  70. {
  71. path: '/work/lookdetail',
  72. name: 'work_lookdetail',
  73. component: () => import('@/views/work/lookdetail.vue'),
  74. },
  75. {
  76. path: '/subject/index',
  77. name: 'subject_index',
  78. component: () => import('@/views/subject/index.vue'),
  79. },
  80. {
  81. path: '/subject/detail',
  82. name: 'subject_detail',
  83. component: () => import('@/views/subject/detail.vue'),
  84. },
  85. {
  86. path: '/director/index',
  87. name: 'director_index',
  88. component: () => import('@/views/director/index.vue'),
  89. },
  90. {
  91. path: '/director/detail',
  92. name: 'director_detail',
  93. component: () => import('@/views/director/detail.vue'),
  94. },
  95. {
  96. path: '/dept/index',
  97. name: 'dept_index',
  98. component: () => import('@/views/dept/index.vue'),
  99. },
  100. {
  101. path: '/dept/detail',
  102. name: 'dept_detail',
  103. component: () => import('@/views/dept/detail.vue'),
  104. },
  105. {
  106. path: '/place/index',
  107. name: 'place_index',
  108. component: () => import('@/views/place/index.vue'),
  109. },
  110. {
  111. path: '/place/detail',
  112. name: 'place_detail',
  113. component: () => import('@/views/place/detail.vue'),
  114. },
  115. {
  116. path: '/bedroom/index',
  117. name: 'bedroom_index',
  118. component: () => import('@/views/bedroom/index.vue'),
  119. },
  120. {
  121. path: '/bedroom/detail',
  122. name: 'bedroom_detail',
  123. component: () => import('@/views/bedroom/detail.vue'),
  124. },
  125. {
  126. path: '/classes/index',
  127. name: 'classes_index',
  128. component: () => import('@/views/classes/index.vue'),
  129. },
  130. {
  131. path: '/classes/detail',
  132. name: 'classes_detail',
  133. component: () => import('@/views/classes/detail.vue'),
  134. },
  135. {
  136. path: '/student/index',
  137. name: 'student_index',
  138. component: () => import('@/views/student/index.vue'),
  139. },
  140. {
  141. path: '/student/detail',
  142. name: 'student_detail',
  143. component: () => import('@/views/student/detail.vue'),
  144. },
  145. ],
  146. },
  147. ];
  148. const router = new VueRouter({
  149. mode: 'history',
  150. base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROOT_URL + 'center',
  151. routes,
  152. });
  153. export default router;