routes.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 examCertification from './views/examCertification/examCertification.vue'
  13. import gcpCertification from './views/gcpCertification/gcpCertification.vue'
  14. import offlineRegistration from './views/offlineRegistration/registration.vue'
  15. import hotTopicCarousel from './views/hotTopicCarousel/hotTopicCarousel.vue'
  16. Vue.use(Router)
  17. export const allRouters = [
  18. {
  19. path: '/login',
  20. component: Login,
  21. name: '',
  22. hidden: true
  23. },
  24. {
  25. path: '/register',
  26. component: Register,
  27. name: '',
  28. hidden: true
  29. },
  30. {
  31. path: '/viewonline',
  32. component: PdfView,
  33. name: '',
  34. hidden: true
  35. },
  36. {
  37. path: '/courselist',
  38. component: Home,
  39. name: '课程管理',
  40. iconCls: 'iconfont firerock-iconkehu',
  41. leaf: true,
  42. children: [
  43. { path: '/courselist', component: courselist, name: '课程管理' }
  44. ]
  45. },
  46. {
  47. path: '/lecturer',
  48. component: Home,
  49. name: '讲师管理',
  50. iconCls: 'iconfont firerock-iconkehu',
  51. leaf: true,
  52. children: [
  53. { path: '/lecturer', component: lecturerList, name: '讲师管理' }
  54. ]
  55. },
  56. {
  57. path: '/404',
  58. component: NotFound,
  59. name: '',
  60. hidden: true
  61. },
  62. {
  63. path: '/exam-certification',
  64. component: Home,
  65. name: '考试拿证流程介绍',
  66. iconCls: 'iconfont firerock-iconkehu',
  67. leaf: true,
  68. children: [
  69. { path: '/exam-certification', component: examCertification, name: '考试拿证流程介绍' },
  70. ]
  71. },
  72. {
  73. path: '/offline-training',
  74. component: Home,
  75. name: '线下研修班',
  76. iconCls: 'iconfont firerock-iconkehu',
  77. leaf: true,
  78. children: [
  79. { path: '/offline-training', component: offlineTraining, name: '线下研修班' }
  80. ]
  81. },
  82. {
  83. path: '/offline-registration',
  84. component: Home,
  85. name: '线下研修班报名',
  86. iconCls: 'iconfont firerock-iconkehu',
  87. leaf: true,
  88. children: [
  89. { path: '/offline-registration', component: offlineRegistration, name: '线下研修班报名' }
  90. ]
  91. },
  92. {
  93. path: '/hotTopic-carousel',
  94. component: Home,
  95. name: '轮播热点内容',
  96. iconCls: 'iconfont firerock-iconkehu',
  97. leaf: true,
  98. children: [
  99. { path: '/hotTopic-carousel', component: hotTopicCarousel, name: '轮播热点内容' }
  100. ]
  101. },
  102. {
  103. path: '/gcpc-certification',
  104. component: Home,
  105. name: 'GCP证书展示',
  106. iconCls: 'iconfont firerock-iconkehu',
  107. leaf: true,
  108. children: [
  109. { path: '/gcpc-certification', component: gcpCertification, name: 'GCP证书展示' }
  110. ]
  111. },
  112. {
  113. path: '*',
  114. hidden: true,
  115. redirect: { path: '/404' }
  116. }
  117. ]
  118. export default new Router({
  119. routes: allRouters
  120. })