index.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. import Vue from 'vue';
  2. import Router from 'vue-router';
  3. Vue.use(Router);
  4. export default new Router({
  5. mode: 'history',
  6. base: process.env.NODE_ENV === 'development' ? '' : 'liveadmin',
  7. routes: [
  8. {
  9. path: '/',
  10. redirect: '/homeIndex',
  11. },
  12. {
  13. path: '/',
  14. component: () => import('../components/common/Home.vue'),
  15. meta: { title: '自述文件' },
  16. children: [
  17. {
  18. path: '/homeIndex',
  19. component: () => import('../views/homeIndex.vue'),
  20. meta: { title: '系统首页' },
  21. },
  22. // 菜单管理
  23. {
  24. path: '/menu',
  25. component: () => import('../views/menu/index.vue'),
  26. meta: { title: '菜单管理' },
  27. },
  28. // 审核申请书
  29. {
  30. path: '/adminExamine',
  31. component: () => import('../views/adminCenter/adminExamine/index.vue'),
  32. meta: { title: '审核申请书' },
  33. },
  34. {
  35. path: '/adminExamine/detail',
  36. component: () => import('../views/adminCenter/adminExamine/detail.vue'),
  37. meta: { title: '资料审核' },
  38. },
  39. // 专家评分
  40. {
  41. path: '/adminScore',
  42. component: () => import('../views/adminCenter/adminScore/index.vue'),
  43. meta: { title: '专家评分' },
  44. },
  45. {
  46. path: '/adminScore/detail',
  47. component: () => import('../views/adminCenter/adminScore/detail.vue'),
  48. meta: { title: '专家评分查看' },
  49. },
  50. // 专家会审
  51. {
  52. path: '/adminMeet',
  53. component: () => import('../views/adminCenter/adminMeet/index.vue'),
  54. meta: { title: '专家会审' },
  55. },
  56. {
  57. path: '/adminMeet/detail',
  58. component: () => import('../views/adminCenter/adminMeet/detail.vue'),
  59. meta: { title: '专家会审记录' },
  60. },
  61. {
  62. path: '/adminMeet/expert',
  63. component: () => import('../views/adminCenter/adminMeet/expert.vue'),
  64. meta: { title: '会审专家管理' },
  65. },
  66. // 完善资料
  67. {
  68. path: '/adminPerfect',
  69. component: () => import('../views/adminCenter/adminPerfect/index.vue'),
  70. meta: { title: '完善资料' },
  71. },
  72. {
  73. path: '/adminPerfect/detail',
  74. component: () => import('../views/adminCenter/adminPerfect/detail.vue'),
  75. meta: { title: '资料查看' },
  76. },
  77. // 证书发放
  78. {
  79. path: '/adminCate',
  80. component: () => import('../views/adminCenter/adminCate/index.vue'),
  81. meta: { title: '证书发放' },
  82. },
  83. // 已证书发放
  84. {
  85. path: '/adminHaveCert',
  86. component: () => import('../views/adminCenter/adminHaveCert/index.vue'),
  87. meta: { title: '已证书发放' },
  88. },
  89. // 用户中心
  90. {
  91. path: '/userExamine',
  92. component: () => import('../views/userCenter/userExamine/index.vue'),
  93. meta: { title: '申请书' },
  94. },
  95. // 评分总结
  96. {
  97. path: '/userScore',
  98. component: () => import('../views/userCenter/userScore/index.vue'),
  99. meta: { title: '评分总结' },
  100. },
  101. ],
  102. },
  103. {
  104. path: '/login',
  105. component: () => import('../views/Login.vue'),
  106. meta: { title: '登录' },
  107. },
  108. // 用戶申报
  109. {
  110. path: '/userDeclare',
  111. component: () => import('../views/userDeclare/index.vue'),
  112. meta: { title: '用户申报' },
  113. },
  114. {
  115. path: '*',
  116. redirect: '/404',
  117. },
  118. ],
  119. });