routes.js 8.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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: '/welcome',
  25. },
  26. {
  27. path: '/welcome',
  28. name: 'welcome',
  29. icon: 'smile',
  30. component: './Welcome',
  31. },
  32. {
  33. path: '/admin',
  34. name: 'admin',
  35. icon: 'crown',
  36. component: './Admin',
  37. authority: ['admin'],
  38. routes: [
  39. {
  40. path: '/admin/sub-page',
  41. name: 'sub-page',
  42. icon: 'smile',
  43. component: './Welcome',
  44. authority: ['admin'],
  45. },
  46. ],
  47. },
  48. {
  49. path: '/building',
  50. name: '项目管理',
  51. icon: 'control',
  52. component: '../layouts/BlankLayout',
  53. routes: [
  54. {
  55. path: '/building/list',
  56. name: '项目列表',
  57. component: './building/List',
  58. },
  59. {
  60. path: '/building/add',
  61. name: '项目维护',
  62. component: './building/Edit',
  63. hideInMenu: true,
  64. },
  65. {
  66. path: '/building/type',
  67. name: '项目类型',
  68. component: './building/type/index',
  69. },
  70. {
  71. path: '/building/type/edi',
  72. name: '项目类型编辑',
  73. hideInMenu: true,
  74. component: './building/type/edi',
  75. },
  76. {
  77. path: '/building/Developers',
  78. name: '品牌开发商',
  79. component: './building/Developers',
  80. },
  81. {
  82. path: '/building/Developers/Edit',
  83. name: '品牌开发商编辑',
  84. hideInMenu: true,
  85. component: './building/Developers/Edit',
  86. },
  87. ],
  88. },
  89. {
  90. path: '/customer',
  91. name: '客户管理',
  92. component: '../layouts/BlankLayout',
  93. routes: [
  94. {
  95. path: '/customer/customer/list',
  96. name: '客户列表',
  97. component: './customer/Customer/index',
  98. },
  99. {
  100. path: '/customer/customerlist/privateCustomerDetail',
  101. name: '私客详情',
  102. hideInMenu: true,
  103. component: './customer/Customer/PrivateCustomer/CustomerDetail',
  104. },
  105. // {
  106. // path: '/customer/customerlist/list',
  107. // name: '客户列表old',
  108. // component: './customer/customerlist/index copy.jsx',
  109. // },
  110. {
  111. path: '/customer/customerlist/customerDetail',
  112. name: '私客详情',
  113. hideInMenu: true,
  114. component: './customer/customerlist/customerDetail',
  115. },
  116. {
  117. path: '/customer/drift/list',
  118. name: '游客列表',
  119. component: './customer/drift/index',
  120. },
  121. {
  122. path: '/customer/customerlist/publicCustomerDetail',
  123. name: '公客详情',
  124. hideInMenu: true,
  125. component: './customer/customerlist/publicCustomerDetail',
  126. },
  127. {
  128. path: '/customer/recommend/list',
  129. name: '推荐记录',
  130. component: './customer/Recommend',
  131. },
  132. {
  133. path: '/customer/recommend/audit',
  134. name: '客户审核',
  135. hideInMenu: true,
  136. component: './customer/Recommend/audit',
  137. },
  138. ],
  139. },
  140. {
  141. path: '/staff',
  142. name: '员工管理',
  143. component: '../layouts/BlankLayout',
  144. routes: [
  145. {
  146. path: '/staff/Staff/List',
  147. name: '员工列表',
  148. component: './staff/Staff/List',
  149. },
  150. {
  151. path: '/staff/Staff/Edit',
  152. name: '编辑员工',
  153. hideInMenu: true,
  154. component: './staff/Staff/Edit',
  155. },
  156. {
  157. path: '/staff/Role/List',
  158. name: '角色管理',
  159. component: './staff/Role/List',
  160. },
  161. {
  162. path: '/staff/Role/Edit',
  163. name: '编辑角色',
  164. hideInMenu: true,
  165. component: './staff/Role/Edit',
  166. },
  167. {
  168. path: '/staff/Organization/List',
  169. name: '组织架构',
  170. component: './staff/Organization',
  171. },
  172. // {
  173. // path: '/staff/list/distribution',
  174. // name: '分配归属',
  175. // hideInMenu: true,
  176. // component: './staff/list/distribution',
  177. // },
  178. ],
  179. },
  180. {
  181. path: '/news',
  182. name: '资讯管理',
  183. component: '../layouts/BlankLayout',
  184. routes: [
  185. {
  186. path: '/news/type/NewsType',
  187. name: '资讯类型',
  188. component: './news/type/NewsType',
  189. },
  190. {
  191. path: '/news/type/editNews',
  192. name: '编辑资讯类型',
  193. hideInMenu: true,
  194. component: './news/type/editNews',
  195. },
  196. {
  197. path: '/news/list/NewsList',
  198. name: '资讯列表',
  199. component: './news/list/NewsList',
  200. },
  201. {
  202. path: '/news/list/editNewsList',
  203. name: '编辑资讯',
  204. hideInMenu: true,
  205. component: './news/list/editNewsList',
  206. },
  207. ],
  208. },
  209. {
  210. path: '/carouselFigure',
  211. name: '资源位管理',
  212. component: '../layouts/BlankLayout',
  213. routes: [
  214. {
  215. path: '/carouselFigure/carouselFigureList',
  216. name: '轮播图',
  217. component: './carouselFigure/carouselFigureList',
  218. },
  219. {
  220. path: '/carouselFigure/editCarousel',
  221. name: '轮播图编辑',
  222. hideInMenu: true,
  223. component: './carouselFigure/editCarousel',
  224. },
  225. {
  226. path: '/carouselFigure/advertisingList',
  227. name: '开屏广告',
  228. component: './carouselFigure/advertisingList',
  229. },
  230. {
  231. path: '/carouselFigure/editAdvertising',
  232. name: '开屏广告编辑',
  233. hideInMenu: true,
  234. component: './carouselFigure/editAdvertising',
  235. },
  236. {
  237. path: '/carouselFigure/propagandaList',
  238. name: '宣传位',
  239. component: './carouselFigure/propagandaList',
  240. },
  241. {
  242. path: '/carouselFigure/propaganda',
  243. name: '宣传位编辑',
  244. hideInMenu: true,
  245. component: './carouselFigure/propaganda',
  246. },
  247. {
  248. path: '/carouselFigure/customImg/list',
  249. name: '其他',
  250. component: './carouselFigure/customImg/list',
  251. },
  252. {
  253. path: '/carouselFigure/customImg/edit',
  254. name: '其他编辑',
  255. hideInMenu: true,
  256. component: './carouselFigure/customImg/edit',
  257. },
  258. ],
  259. },
  260. {
  261. component: './404',
  262. },
  263. ],
  264. },
  265. {
  266. component: './404',
  267. },
  268. ],
  269. },
  270. {
  271. component: './404',
  272. },
  273. ]