index.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. {
  92. path: '/firstApply',
  93. component: () => import('../views/userCenter/userExamine/firstApply.vue'),
  94. meta: { title: '待审中' },
  95. },
  96. {
  97. path: '/updateApply',
  98. component: () => import('../views/userCenter/userExamine/updateApply.vue'),
  99. meta: { title: '审核未通过' },
  100. },
  101. {
  102. path: '/userExamine/detail',
  103. component: () => import('../views/userCenter/userExamine/detail.vue'),
  104. meta: { title: '审核意见查看' },
  105. },
  106. {
  107. path: '/userExamine/update',
  108. component: () => import('../views/userCenter/userExamine/update.vue'),
  109. meta: { title: '修改申请书' },
  110. },
  111. // 评分总结
  112. {
  113. path: '/expertExam',
  114. component: () => import('../views/userCenter/userScore/expertExam.vue'),
  115. meta: { title: '待专家评分' },
  116. },
  117. ],
  118. },
  119. {
  120. path: '/login',
  121. component: () => import('../views/Login.vue'),
  122. meta: { title: '登录' },
  123. },
  124. // 用戶申报
  125. {
  126. path: '/userDeclare',
  127. component: () => import('../views/userDeclare/index.vue'),
  128. meta: { title: '用户申报' },
  129. },
  130. {
  131. path: '*',
  132. redirect: '/404',
  133. },
  134. ],
  135. });