index.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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' ? '' : 'study',
  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: '/code',
  31. component: () => import('../views/code/index.vue'),
  32. meta: { title: '机构代码或邀请码' },
  33. },
  34. // 管理员
  35. {
  36. path: '/gly',
  37. component: () => import('../views/gly/index.vue'),
  38. meta: { title: '管理员管理' },
  39. },
  40. {
  41. path: '/gly/detail',
  42. component: () => import('../views/gly/detail.vue'),
  43. meta: { title: '管理员信息管理' },
  44. },
  45. // 机构管理员
  46. {
  47. path: '/jg',
  48. component: () => import('../views/jg/index.vue'),
  49. meta: { title: '机构管理员' },
  50. },
  51. {
  52. path: '/jg/detail',
  53. component: () => import('../views/jg/detail.vue'),
  54. meta: { title: '机构管理员信息管理' },
  55. },
  56. // 业务管理员
  57. {
  58. path: '/yw',
  59. component: () => import('../views/yw/index.vue'),
  60. meta: { title: '业务管理员' },
  61. },
  62. {
  63. path: '/yw/detail',
  64. component: () => import('../views/yw/detail.vue'),
  65. meta: { title: '业务管理员信息管理' },
  66. },
  67. // 用户管理
  68. {
  69. path: '/user',
  70. component: () => import('../views/user/index.vue'),
  71. meta: { title: '用户管理' },
  72. },
  73. {
  74. path: '/user/detail',
  75. component: () => import('../views/user/detail.vue'),
  76. meta: { title: '用户信息管理' },
  77. },
  78. // 审核管理
  79. {
  80. path: '/product',
  81. component: () => import('../views/product/index.vue'),
  82. meta: { title: '审核管理' },
  83. },
  84. {
  85. path: '/product/detail',
  86. component: () => import('../views/product/detail.vue'),
  87. meta: { title: '信息审核管理' },
  88. },
  89. // 展会管理
  90. {
  91. path: '/live',
  92. component: () => import('../views/live/index.vue'),
  93. meta: { title: '展会管理' },
  94. },
  95. {
  96. path: '/live/detail',
  97. component: () => import('../views/live/detail.vue'),
  98. meta: { title: '展会信息管理' },
  99. },
  100. // 交易审核管理
  101. {
  102. path: '/transaction',
  103. component: () => import('../views/transaction/index.vue'),
  104. meta: { title: '交易审核管理' },
  105. },
  106. // 技术新闻
  107. {
  108. path: '/news',
  109. component: () => import('../views/news/index.vue'),
  110. meta: { title: '技术新闻管理' },
  111. },
  112. {
  113. path: '/news/detail',
  114. component: () => import('../views/news/detail.vue'),
  115. meta: { title: '信息管理' },
  116. },
  117. // 项目路演
  118. {
  119. path: '/roadshow',
  120. component: () => import('../views/roadshow/index.vue'),
  121. meta: { title: '项目路演' },
  122. },
  123. {
  124. path: '/roadshow/detail',
  125. component: () => import('../views/roadshow/detail.vue'),
  126. meta: { title: '项目路演信息管理' },
  127. },
  128. // 嘉宾访谈
  129. {
  130. path: '/interview',
  131. component: () => import('../views/interview/index.vue'),
  132. meta: { title: '嘉宾访谈' },
  133. },
  134. {
  135. path: '/interview/detail',
  136. component: () => import('../views/interview/detail.vue'),
  137. meta: { title: '嘉宾访谈信息管理' },
  138. },
  139. // 通知管理
  140. {
  141. path: '/notice',
  142. component: () => import('../views/notice/index.vue'),
  143. meta: { title: '通知管理' },
  144. },
  145. {
  146. path: '/notice/detail',
  147. component: () => import('../views/notice/detail.vue'),
  148. meta: { title: '通知信息管理' },
  149. },
  150. // 科技新闻
  151. {
  152. path: '/science',
  153. component: () => import('../views/science/index.vue'),
  154. meta: { title: '科技新闻' },
  155. },
  156. {
  157. path: '/science/detail',
  158. component: () => import('../views/science/detail.vue'),
  159. meta: { title: '科技新闻信息管理' },
  160. },
  161. // e专利
  162. {
  163. path: '/patent',
  164. component: () => import('../views/patent/index.vue'),
  165. meta: { title: 'e专利' },
  166. },
  167. {
  168. path: '/patent/detail',
  169. component: () => import('../views/patent/detail.vue'),
  170. meta: { title: 'e专利信息管理' },
  171. },
  172. // 培训问诊
  173. {
  174. path: '/train',
  175. component: () => import('../views/train/index.vue'),
  176. meta: { title: '培训问诊' },
  177. },
  178. {
  179. path: '/train/detail',
  180. component: () => import('../views/train/detail.vue'),
  181. meta: { title: '培训问诊信息管理' },
  182. },
  183. ],
  184. },
  185. {
  186. path: '/login',
  187. component: () => import('../views/Login.vue'),
  188. meta: { title: '登录' },
  189. },
  190. {
  191. path: '*',
  192. redirect: '/404',
  193. },
  194. ],
  195. });