strict.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. /** When your routing table is too long, you can split it into small modules **/
  2. import Layout from '@/layout'
  3. const strictRouter = {
  4. path: '/user',
  5. component: Layout,
  6. redirect: '/user/list',
  7. alwaysShow: true, // will always show the root menu
  8. name: 'UserSitting', // name必须和后台配置一致,不然匹配不到
  9. meta: { title: '用户管理', icon: 'user' },
  10. children: [
  11. {
  12. path: 'record-list',
  13. name: 'RecordList',
  14. component: () => import('@/views/user/record/list'),
  15. meta: { title: '用户行为记录', icon: 'international', activeMenu: '/user/list' }
  16. },
  17. {
  18. path: 'detail-list',
  19. hidden: true,
  20. component: () => import('@/views/user/record/detail-list'),
  21. name: 'RecordDtails',
  22. meta: { title: '查看详情', noCache: true, activeMenu: '/user/list' }
  23. },
  24. {
  25. path: 'customer',
  26. name: 'CustomerMenu',
  27. redirect: '/user/customer',
  28. component: () => import('@/views/index'),
  29. meta: { title: '潜客搜集' },
  30. children: [
  31. {
  32. path: 'list',
  33. name: 'CustomerList',
  34. component: () => import('@/views/user/customer/list'),
  35. meta: { title: '供应商列表' }
  36. },
  37. {
  38. path: 'market-list',
  39. name: 'MarketList',
  40. component: () => import('@/views/user/customer/market-list'),
  41. meta: { title: '营销数据报表' },
  42. hidden: true
  43. },
  44. {
  45. path: 'market-report-list',
  46. name: 'MarketReportList',
  47. component: () => import('@/views/user/customer/market-report-list'),
  48. meta: { title: '数据报表' },
  49. hidden: true
  50. },
  51. {
  52. path: 'market-edit',
  53. name: 'MarketEdit',
  54. component: () => import('@/views/user/customer/market-edit'),
  55. meta: { title: '数据报表上传/编辑' },
  56. hidden: true
  57. },
  58. {
  59. path: 'customer-stat-list',
  60. name: 'CustomerStatsList',
  61. component: () => import('@/views/user/customer/customer-stat-list'),
  62. meta: { title: '潜客统计列表' },
  63. hidden: true
  64. },
  65. {
  66. path: 'customer-remarks',
  67. name: 'CustomerRemarks',
  68. component: () => import('@/views/user/customer/customer-remarks'),
  69. meta: { title: '潜客备注' },
  70. hidden: true
  71. },
  72. {
  73. path: 'customer-remarks-add',
  74. name: 'CustomerRemarksAdd',
  75. component: () => import('@/views/user/customer/customer-remarks-add '),
  76. meta: { title: '添加备注' },
  77. hidden: true
  78. },
  79. {
  80. path: 'customer-ambition-list',
  81. name: 'CustomerAmbitionList',
  82. component: () => import('@/views/user/customer/customer-ambition-list'),
  83. meta: { title: '意向客户数据' },
  84. hidden: true
  85. },
  86. {
  87. path: 'customer-ambition-edit',
  88. name: 'CustomerAmbitionEdit',
  89. component: () => import('@/views/user/customer/customer-ambition-edit'),
  90. meta: { title: '添加/编辑' },
  91. hidden: true
  92. },
  93. {
  94. path: 'customer-ambition-sum',
  95. name: 'CustomerAmbitionSum',
  96. component: () => import('@/views/user/customer/customer-ambition-sum'),
  97. meta: { title: '数据总结' },
  98. hidden: true
  99. },
  100. {
  101. path: 'customer-article-list',
  102. name: 'CustomerArticleList',
  103. component: () => import('@/views/user/customer/customer-article-list'),
  104. meta: { title: '相关文章' },
  105. hidden: true
  106. },
  107. {
  108. path: 'customer-goods-list',
  109. name: 'CustomerGoodsList',
  110. component: () => import('@/views/user/customer/customer-goods-list'),
  111. meta: { title: '相关商品' },
  112. hidden: true
  113. },
  114. {
  115. path: 'customer-search-list',
  116. name: 'CustomerSearchList',
  117. component: () => import('@/views/user/customer/customer-search-list'),
  118. meta: { title: '相关搜索词' },
  119. hidden: true
  120. },
  121. {
  122. path: 'customer-page-list',
  123. name: 'CustomerPageList',
  124. component: () => import('@/views/user/customer/customer-page-list'),
  125. meta: { title: '页面访问统计' },
  126. hidden: true
  127. },
  128. {
  129. path: 'customer-popup-edit',
  130. name: 'CustomerPopupEdit',
  131. component: () => import('@/views/user/customer/customer-popup-edit'),
  132. meta: { title: '弹窗样式编辑' },
  133. hidden: true
  134. },
  135. {
  136. path: 'advertis-list',
  137. name: 'AdvertisList',
  138. component: () => import('@/views/user/customer/advertis-list'),
  139. meta: { title: '供应商广告图' }
  140. },
  141. {
  142. path: 'advertis-edit',
  143. name: 'AdvertisEdit',
  144. component: () => import('@/views/user/customer/advertis-edit'),
  145. meta: { title: '广告图添加' }
  146. }
  147. ]
  148. },
  149. {
  150. path: 'consult',
  151. name: 'ConsultMenu',
  152. redirect: '/user/consult',
  153. component: () => import('@/views/index'),
  154. meta: { title: '咨询记录' },
  155. children: [
  156. {
  157. path: 'list',
  158. name: 'ConsultList',
  159. component: () => import('@/views/user/consult/list'),
  160. meta: { title: '用户咨询记录汇总' }
  161. },
  162. {
  163. path: 'unreg-list',
  164. name: 'UnregList',
  165. component: () => import('@/views/user/consult/unreg-list'),
  166. meta: { title: '未注册用户咨询记录' }
  167. },
  168. {
  169. path: 'genre-list',
  170. name: 'GenreList',
  171. component: () => import('@/views/user/consult/genre-list'),
  172. meta: { title: '咨询类别设置' }
  173. },
  174. {
  175. path: 'report-list',
  176. name: 'ReportList',
  177. component: () => import('@/views/user/consult/report-list'),
  178. meta: { title: '报备列表' }
  179. },
  180. {
  181. path: 'detail',
  182. name: 'ConsultDetail',
  183. component: () => import('@/views/user/consult/detail'),
  184. meta: { title: '详情' },
  185. hidden: true
  186. },
  187. {
  188. path: 'unreg-detail',
  189. name: 'UnregDetail',
  190. component: () => import('@/views/user/consult/unreg-detail'),
  191. meta: { title: '信息详情' },
  192. hidden: true
  193. }
  194. ]
  195. }
  196. ]
  197. }
  198. export default strictRouter