routes.js 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. export default [
  2. {
  3. path: '/user',
  4. component: '../layouts/UserLayout',
  5. routes: [
  6. {
  7. name: 'login',
  8. path: '/user/login',
  9. component: './user/login',
  10. },
  11. ],
  12. },
  13. {
  14. path: '/',
  15. component: '../layouts/SecurityLayout',
  16. routes: [
  17. {
  18. path: '/',
  19. component: '../layouts/BasicLayout',
  20. authority: ['admin', 'user'],
  21. routes: [
  22. {
  23. path: '/',
  24. redirect: '/channel',
  25. },
  26. // {
  27. // path: '/welcome',
  28. // name: '首页',
  29. // component: './Welcome',
  30. // },
  31. {
  32. path: '/channel',
  33. name: '渠道列表',
  34. component: './channel',
  35. },
  36. {
  37. path: '/channel/edit',
  38. name: '渠道列表',
  39. hideInMenu: true,
  40. component: './channel/edit',
  41. },
  42. {
  43. path: '/sample',
  44. name: 'H5样例管理',
  45. component: '../layouts/BlankLayout',
  46. routes: [
  47. {
  48. path: '/sample/h5/list',
  49. name: 'H5样例',
  50. component: './sample/h5/index',
  51. },
  52. {
  53. path: '/sample/h5/edit',
  54. name: 'H5样例编辑',
  55. hideInMenu: true,
  56. component: './sample/h5/edit',
  57. },
  58. {
  59. path: '/sample/demand/list',
  60. name: 'H5需求单',
  61. component: './sample/demand/index',
  62. },
  63. {
  64. path: '/sample/demand/edit',
  65. name: 'H5需求单详情',
  66. hideInMenu: true,
  67. component: './sample/demand/edit',
  68. },
  69. ],
  70. },
  71. {
  72. path: '/contact',
  73. name: '联系人管理',
  74. component: '../layouts/BlankLayout',
  75. routes: [
  76. {
  77. path: '/contact/contact/list',
  78. name: '联系人',
  79. component: './contact/contact/list',
  80. },
  81. {
  82. path: '/contact/contact/add',
  83. name: '新增',
  84. hideInMenu: true,
  85. component: './contact/contact/add',
  86. },
  87. {
  88. path: '/contact/contact/detail',
  89. name: '详情',
  90. hideInMenu: true,
  91. component: './contact/contact/detail',
  92. },
  93. ],
  94. },
  95. {
  96. path: '/resource',
  97. name: '资源位管理',
  98. component: '../layouts/BlankLayout',
  99. routes: [
  100. {
  101. path: '/resource/openScreen',
  102. name: '开屏通知',
  103. component: './resource/openScreen',
  104. },
  105. {
  106. path: '/resource/openScreen/add',
  107. name: '新增',
  108. hideInMenu: true,
  109. component: './resource/openScreen/edit',
  110. },
  111. {
  112. path: '/resource/openScreen/edit',
  113. name: '开屏通知编辑',
  114. hideInMenu: true,
  115. component: './resource/openScreen/edit',
  116. },
  117. ],
  118. },
  119. {
  120. path: '/eContract',
  121. name: '电子合同',
  122. component: '../layouts/BlankLayout',
  123. routes: [
  124. {
  125. path: '/eContract/company/list',
  126. name: '企业认证管理',
  127. component: './eContract/company/index',
  128. },
  129. {
  130. path: '/eContract/company/add',
  131. name: '新增企业认证',
  132. hideInMenu: true,
  133. component: './eContract/company/add',
  134. },
  135. {
  136. path: '/eContract/company/edit',
  137. name: '编辑企业认证',
  138. hideInMenu: true,
  139. component: './eContract/company/edit',
  140. },
  141. {
  142. path: '/eContract/relatedOrganization',
  143. name: '关联组织',
  144. component: './eContract/relatedOrganization',
  145. },
  146. {
  147. path: '/eContract/relatedOrganization/add',
  148. name: '新增关联组织',
  149. hideInMenu: true,
  150. component: './eContract/relatedOrganization/add',
  151. },
  152. {
  153. path: '/eContract/signedContract',
  154. name: '已签署合同',
  155. component: './eContract/signedContract',
  156. },
  157. ],
  158. },
  159. {
  160. component: './404',
  161. },
  162. ],
  163. },
  164. {
  165. component: './404',
  166. },
  167. ],
  168. },
  169. {
  170. component: './404',
  171. },
  172. ];