routes.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import Login from './views/Login.vue'
  4. import Register from './views/Register.vue'
  5. import NotFound from './views/404.vue'
  6. import Home from './views/Home.vue'
  7. import PdfView from './views/pdf/pdfview';
  8. //课程管理
  9. import courselist from './views/coursemanagement/list';
  10. import lecturerList from './views/lecturerManagement/index.vue'
  11. import gcpCertification from './views/gcpCertification/gcpCertification.vue'
  12. import hotTopicCarousel from './views/hotTopicCarousel/hotTopicCarousel.vue'
  13. import homeRecommended from './views/homeRecommended/homeRecommended.vue'
  14. // 考试管理
  15. import examCertification from './views/examinationManagement/examCertification.vue' // 考试拿证流程介绍
  16. import examinationInformation from './views/examinationManagement/examinationInformation.vue' // 考试信息管理
  17. import examRegistrationReview from './views/examinationManagement/examRegistrationReview.vue' // 考试报名审核
  18. import examResults from './views/examinationManagement/examResults.vue' // 考试结果
  19. import certificates from './views/examinationManagement/certificates.vue' // 证书管理
  20. // 研修班管理
  21. import offlineTraining from './views/trainingClassManagement/offlineTraining.vue' // 线下研修班介绍
  22. import offlineRegistration from './views/trainingClassManagement/registration.vue' // 线下研修班
  23. import student from './views/trainingClassManagement/student.vue' // 学员姓名
  24. import studentPayment from './views/trainingClassManagement/studentPayment.vue' // 学员缴费
  25. // 用户与消息管理
  26. import myMessage from './views/userAndMessageManagement/myMessage.vue' // 我的消息
  27. import customerServiceCenter from './views/userAndMessageManagement/customerServiceCenter.vue' // 客服中心
  28. import userManagement from './views/userAndMessageManagement/userManagement.vue' // 用户管理
  29. // 订单与财务管理
  30. import orderManagement from './views/orderAndFinancialManagement/orderManagement.vue' // 订单管理
  31. import electronicInvoiceRegistration from './views/orderAndFinancialManagement/electronicInvoiceRegistration.vue' // 电子发票登记表
  32. Vue.use(Router)
  33. export const allRouters = [
  34. {
  35. path: '/login',
  36. component: Login,
  37. name: '',
  38. hidden: true
  39. },
  40. {
  41. path: '/register',
  42. component: Register,
  43. name: '',
  44. hidden: true
  45. },
  46. {
  47. path: '/viewonline',
  48. component: PdfView,
  49. name: '',
  50. hidden: true
  51. },
  52. {
  53. path: '/courselist',
  54. component: Home,
  55. name: '课程管理',
  56. iconCls: 'iconfont firerock-iconkehu',
  57. leaf: true,
  58. children: [
  59. { path: '/courselist', component: courselist, name: '课程管理' }
  60. ]
  61. },
  62. {
  63. path: '/lecturer',
  64. component: Home,
  65. name: '讲师管理',
  66. iconCls: 'iconfont firerock-iconkehu',
  67. leaf: true,
  68. children: [
  69. { path: '/lecturer', component: lecturerList, name: '讲师管理' }
  70. ]
  71. },
  72. {
  73. path: '/hotTopic-carousel',
  74. component: Home,
  75. name: '轮播热点内容',
  76. iconCls: 'iconfont firerock-iconkehu',
  77. leaf: true,
  78. children: [
  79. { path: '/hotTopic-carousel', component: hotTopicCarousel, name: '轮播热点内容' }
  80. ]
  81. },
  82. {
  83. path: '/gcpc-certification',
  84. component: Home,
  85. name: 'GCP证书展示',
  86. iconCls: 'iconfont firerock-iconkehu',
  87. leaf: true,
  88. children: [
  89. { path: '/gcpc-certification', component: gcpCertification, name: 'GCP证书展示' }
  90. ]
  91. },
  92. {
  93. path: '/homeRecommended',
  94. component: Home,
  95. name: '首页推荐配置',
  96. iconCls: 'iconfont firerock-iconkehu',
  97. leaf: true,
  98. children: [
  99. { path: '/homeRecommended', component: homeRecommended, name: '首页推荐配置' }
  100. ]
  101. },
  102. {
  103. path: '/',
  104. component: Home,
  105. name: '考试管理',
  106. iconCls: 'iconfont firerock-iconsetting',
  107. leaf: false,//只有一个节点
  108. children: [
  109. { path: '/exam-certification', component: examCertification, name: '考试拿证流程介绍' },
  110. { path: '/examination-information', component: examinationInformation, name: '考试信息管理' },
  111. { path: '/exam-registrationReview', component: examRegistrationReview, name: '考试报名审核' },
  112. { path: '/exam-results', component: examResults, name: '考试结果管理' },
  113. { path: '/certificates', component: certificates, name: '证书管理' },
  114. ]
  115. },
  116. {
  117. path: '/',
  118. component: Home,
  119. name: '研修班管理',
  120. iconCls: 'iconfont firerock-iconsetting',
  121. leaf: false,//只有一个节点
  122. children: [
  123. { path: '/offline-training', component: offlineTraining, name: '线下研修班' },
  124. { path: '/offline-registration', component: offlineRegistration, name: '线下研修班报名' },
  125. { path: '/student', component: student, name: '学员名单表格' },
  126. { path: '/student-payment', component: studentPayment, name: '学员缴费情况表' },
  127. ]
  128. },
  129. {
  130. path: '/',
  131. component: Home,
  132. name: '用户与消息管理',
  133. iconCls: 'iconfont firerock-iconsetting',
  134. leaf: false,//只有一个节点
  135. children: [
  136. { path: '/my-message', component: myMessage, name: '我的消息' },
  137. { path: '/customer-service-center', component: customerServiceCenter, name: '客服中心' },
  138. { path: '/user-management', component: userManagement, name: '用户管理' },
  139. ]
  140. },
  141. {
  142. path: '/',
  143. component: Home,
  144. name: '订单与财务管理',
  145. iconCls: 'iconfont firerock-iconsetting',
  146. leaf: false,//只有一个节点
  147. children: [
  148. { path: '/order-management', component: orderManagement, name: '订单管理' },
  149. { path: '/wwwwww', component: electronicInvoiceRegistration, name: '电子发票登记表' },
  150. ]
  151. },
  152. {
  153. path: '/404',
  154. component: NotFound,
  155. name: '',
  156. hidden: true
  157. },
  158. {
  159. path: '*',
  160. hidden: true,
  161. redirect: { path: '/404' }
  162. }
  163. ]
  164. export default new Router({
  165. routes: allRouters
  166. })