routes.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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 offlineTraining from './views/offlineTraining/offlineTraining.vue'
  12. import gcpCertification from './views/gcpCertification/gcpCertification.vue'
  13. import offlineRegistration from './views/offlineRegistration/registration.vue'
  14. import hotTopicCarousel from './views/hotTopicCarousel/hotTopicCarousel.vue'
  15. import myMessage from './views/myMessage/myMessage.vue'
  16. import customerServiceCenter from './views/customerServiceCenter/customerServiceCenter.vue'
  17. // 考试管理
  18. import examCertification from './views/examinationManagement/examCertification.vue' // 考试拿证流程介绍
  19. import examinationInformation from './views/examinationManagement/examinationInformation.vue' // 考试信息管理
  20. Vue.use(Router)
  21. export const allRouters = [
  22. {
  23. path: '/login',
  24. component: Login,
  25. name: '',
  26. hidden: true
  27. },
  28. {
  29. path: '/register',
  30. component: Register,
  31. name: '',
  32. hidden: true
  33. },
  34. {
  35. path: '/viewonline',
  36. component: PdfView,
  37. name: '',
  38. hidden: true
  39. },
  40. {
  41. path: '/courselist',
  42. component: Home,
  43. name: '课程管理',
  44. iconCls: 'iconfont firerock-iconkehu',
  45. leaf: true,
  46. children: [
  47. { path: '/courselist', component: courselist, name: '课程管理' }
  48. ]
  49. },
  50. {
  51. path: '/lecturer',
  52. component: Home,
  53. name: '讲师管理',
  54. iconCls: 'iconfont firerock-iconkehu',
  55. leaf: true,
  56. children: [
  57. { path: '/lecturer', component: lecturerList, name: '讲师管理' }
  58. ]
  59. },
  60. {
  61. path: '/hotTopic-carousel',
  62. component: Home,
  63. name: '轮播热点内容',
  64. iconCls: 'iconfont firerock-iconkehu',
  65. leaf: true,
  66. children: [
  67. { path: '/hotTopic-carousel', component: hotTopicCarousel, name: '轮播热点内容' }
  68. ]
  69. },
  70. {
  71. path: '/gcpc-certification',
  72. component: Home,
  73. name: 'GCP证书展示',
  74. iconCls: 'iconfont firerock-iconkehu',
  75. leaf: true,
  76. children: [
  77. { path: '/gcpc-certification', component: gcpCertification, name: 'GCP证书展示' }
  78. ]
  79. },
  80. {
  81. path: '/',
  82. component: Home,
  83. name: '考试管理',
  84. iconCls: 'iconfont firerock-iconsetting',
  85. leaf: false,//只有一个节点
  86. children: [
  87. { path: '/exam-certification', component: examCertification, name: '考试拿证流程介绍' },
  88. { path: '/examination-information', component: examinationInformation, name: '考试信息管理' },
  89. { path: '/exam-certification', component: examCertification, name: '考试报名审核' },
  90. { path: '/exam-certification', component: examCertification, name: '考试结果管理' },
  91. { path: '/exam-certification', component: examCertification, name: '证书管理' },
  92. ]
  93. },
  94. {
  95. path: '/',
  96. component: Home,
  97. name: '研修班管理',
  98. iconCls: 'iconfont firerock-iconsetting',
  99. leaf: false,//只有一个节点
  100. children: [
  101. { path: '/offline-training', component: offlineTraining, name: '线下研修班' },
  102. { path: '/offline-registration', component: offlineRegistration, name: '线下研修班报名' },
  103. { path: '/offline-registration', component: offlineRegistration, name: '学员名单表格' },
  104. { path: '/offline-registration', component: offlineRegistration, name: '学员缴费情况表' },
  105. ]
  106. },
  107. {
  108. path: '/',
  109. component: Home,
  110. name: '用户与消息管理',
  111. iconCls: 'iconfont firerock-iconsetting',
  112. leaf: false,//只有一个节点
  113. children: [
  114. { path: '/my-message', component: myMessage, name: '我的消息' },
  115. { path: '/customer-service-center', component: customerServiceCenter, name: '客服中心' },
  116. { path: '/my-message', component: myMessage, name: '用户管理' },
  117. ]
  118. },
  119. {
  120. path: '/',
  121. component: Home,
  122. name: '订单与财务管理',
  123. iconCls: 'iconfont firerock-iconsetting',
  124. leaf: false,//只有一个节点
  125. children: [
  126. { path: '/my-message', component: myMessage, name: '订单管理' },
  127. { path: '/customer-service-center', component: customerServiceCenter, name: '电子发票登记表' },
  128. ]
  129. },
  130. {
  131. path: '/404',
  132. component: NotFound,
  133. name: '',
  134. hidden: true
  135. },
  136. {
  137. path: '*',
  138. hidden: true,
  139. redirect: { path: '/404' }
  140. }
  141. ]
  142. export default new Router({
  143. routes: allRouters
  144. })