知与行后台管理端

routes.js 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  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: '首页',
  29. component: './Welcome',
  30. },
  31. {
  32. path: '/indexEcharts',
  33. name: '图表管理',
  34. component: '../layouts/BlankLayout',
  35. hideInMenu: true,
  36. routes: [
  37. {
  38. path: '/indexEcharts/userSource',
  39. name: '用户来源',
  40. component: './indexEcharts/userSource',
  41. },
  42. {
  43. path: '/indexEcharts/newUsers',
  44. name: '新增用户',
  45. component: './indexEcharts/newUsers',
  46. },
  47. {
  48. path: '/indexEcharts/userBehavior',
  49. name: '用户行为',
  50. component: './indexEcharts/userBehavior',
  51. },
  52. ],
  53. },
  54. {
  55. path: '/building',
  56. name: '项目管理',
  57. component: '../layouts/BlankLayout',
  58. routes: [
  59. {
  60. path: '/building/list',
  61. name: '项目列表',
  62. component: './building/list/index',
  63. },
  64. {
  65. path: '/building/list/add',
  66. name: '项目添加', // 项目添加
  67. hideInMenu: true,
  68. component: './building/list/add/index',
  69. },
  70. {
  71. path: '/building/type',
  72. name: '项目类型',
  73. component: './building/type/index',
  74. },
  75. {
  76. path: '/building/type/edi',
  77. name: '项目类型编辑',
  78. hideInMenu: true,
  79. component: './building/type/edi',
  80. },
  81. ],
  82. },
  83. {
  84. path: '/customer',
  85. name: '客户管理',
  86. component: '../layouts/BlankLayout',
  87. routes: [
  88. {
  89. path: '/customer/customerlist/list',
  90. name: '客户列表',
  91. component: './customer/customerlist/index',
  92. },
  93. {
  94. path: '/customer/customerlist/customerDetail',
  95. name: '客户编辑',
  96. hideInMenu: true,
  97. component: './customer/customerlist/customerDetail',
  98. },
  99. {
  100. path: '/customer/drift/list',
  101. name: '游客列表',
  102. component: './customer/drift/index',
  103. },
  104. {
  105. path: '/customer/report/list',
  106. name: '报备客户',
  107. component: './customer/report/index',
  108. },
  109. {
  110. path: '/customer/recommendCustomer/list',
  111. name: '推荐客户',
  112. component: './customer/recommendCustomer/index',
  113. },
  114. {
  115. path: '/customer/recommendCustomer/audit',
  116. name: '客户审核',
  117. hideInMenu: true,
  118. component: './customer/recommendCustomer/audit',
  119. },
  120. {
  121. path: '/customer/independentList',
  122. name: '经纪人',
  123. component: './customer/independentList/index',
  124. },
  125. ],
  126. },
  127. {
  128. path: '/integralMall',
  129. name: '积分商城',
  130. component: '../layouts/BlankLayout',
  131. routes: [
  132. {
  133. path: '/integralMall/GoodsList',
  134. name: '商品列表',
  135. component: './integralMall/GoodsList',
  136. },
  137. {
  138. path: '/integralMall/achieve',
  139. name: '积分获取',
  140. component: './integralMall/achieve',
  141. },
  142. {
  143. path: '/integralMall/editAchieve',
  144. name: '积分编辑',
  145. hideInMenu: true,
  146. component: './integralMall/editAchieve',
  147. },
  148. {
  149. path: '/integralMall/editGoods',
  150. name: '商品编辑',
  151. hideInMenu: true,
  152. component: './integralMall/editGoods',
  153. },
  154. {
  155. path: '/integralMall/exchangeRecords',
  156. name: '兑换记录',
  157. component: './integralMall/exchangeRecords',
  158. },
  159. {
  160. path: '/integralMall/writeOff',
  161. name: '商品核销',
  162. component: './integralMall/writeOff',
  163. },
  164. {
  165. path: '/integralMall/verifyList',
  166. name: '商品核销列表',
  167. hideInMenu: true,
  168. component: './integralMall/verifyList',
  169. },
  170. ],
  171. },
  172. {
  173. path: '/channel',
  174. name: '渠道管理',
  175. component: '../layouts/BlankLayout',
  176. routes: [
  177. {
  178. path: '/channel/channelList',
  179. name: '渠道管理',
  180. component: './channel/channelList',
  181. },
  182. {
  183. path: '/channel/addChannel',
  184. name: '添加渠道',
  185. hideInMenu: true,
  186. component: './channel/addChannel',
  187. },
  188. {
  189. path: '/channel/editChannel',
  190. name: '编辑渠道',
  191. hideInMenu: true,
  192. component: './channel/editChannel',
  193. },
  194. {
  195. path: '/channel/brokerList',
  196. name: '经纪人',
  197. hideInMenu: true,
  198. component: './channel/brokerList',
  199. },
  200. {
  201. path: '/channel/recommendClients',
  202. name: '渠道推荐',
  203. hideInMenu: true,
  204. component: './channel/recommendClients',
  205. },
  206. {
  207. path: '/channel/InviteClients',
  208. name: '邀请经纪人',
  209. hideInMenu: true,
  210. component: './channel/InviteClients',
  211. },
  212. ],
  213. },
  214. {
  215. path: '/news',
  216. name: '资讯管理',
  217. component: '../layouts/BlankLayout',
  218. routes: [
  219. {
  220. path: '/news/type/NewsType',
  221. name: '资讯类型',
  222. component: './news/type/NewsType',
  223. },
  224. {
  225. path: '/news/type/editNews',
  226. name: '编辑资讯类型',
  227. hideInMenu: true,
  228. component: './news/type/editNews',
  229. },
  230. {
  231. path: '/news/list/NewsList',
  232. name: '资讯列表',
  233. component: './news/list/NewsList',
  234. },
  235. {
  236. path: '/news/list/editNewsList',
  237. name: '编辑资讯',
  238. hideInMenu: true,
  239. component: './news/list/editNewsList',
  240. },
  241. ],
  242. },
  243. {
  244. path: '/activity',
  245. name: '活动管理',
  246. component: '../layouts/BlankLayout',
  247. routes: [
  248. {
  249. path: '/activity/ActivityList',
  250. name: '活动列表',
  251. component: './activity/ActivityList',
  252. },
  253. {
  254. path: '/activity/editActivity',
  255. name: '编辑活动',
  256. hideInMenu: true,
  257. component: './activity/editActivity',
  258. },
  259. {
  260. path: '/activity/SignList',
  261. name: '报名列表',
  262. hideInMenu: true,
  263. component: './activity/SignList',
  264. },
  265. {
  266. path: '/activity/drainage/DrainageList',
  267. name: '全网投放引流',
  268. component: './activity/drainage/DrainageList',
  269. },
  270. {
  271. path: '/activity/drainage/Detail',
  272. name: '查看详情',
  273. hideInMenu: true,
  274. component: './activity/drainage/Detail',
  275. },
  276. {
  277. path: '/activity/helpActivity/list',
  278. name: '助力活动',
  279. component: './activity/helpActivity/list',
  280. },
  281. {
  282. path: '/activity/helpActivity/helpRecord',
  283. name: '助力记录',
  284. hideInMenu: true,
  285. component: './activity/helpActivity/helpRecord',
  286. },
  287. {
  288. path: '/activity/helpActivity/edithelpActivity',
  289. name: '新增',
  290. hideInMenu: true,
  291. component: './activity/helpActivity/edithelpActivity',
  292. },
  293. {
  294. path: '/activity/groupActivity/list',
  295. name: '拼团活动',
  296. component: './activity/groupActivity/list',
  297. },
  298. {
  299. path: '/activity/groupActivity/helpRecord',
  300. name: '拼团记录',
  301. hideInMenu: true,
  302. component: './activity/groupActivity/helpRecord',
  303. },
  304. {
  305. path: '/activity/groupActivity/editgroupActivity',
  306. name: '新增',
  307. hideInMenu: true,
  308. component: './activity/groupActivity/editgroupActivity',
  309. },
  310. ],
  311. },
  312. {
  313. path: '/staff',
  314. name: '员工管理',
  315. component: '../layouts/BlankLayout',
  316. routes: [
  317. {
  318. path: '/staff/StaffList',
  319. name: '员工列表',
  320. component: './staff/list/StaffList',
  321. },
  322. {
  323. path: '/staff/editStaff',
  324. name: '编辑员工',
  325. hideInMenu: true,
  326. component: './staff/list/editStaff',
  327. },
  328. {
  329. path: '/staff/RoleList',
  330. name: '角色管理',
  331. component: './staff/list/RoleList',
  332. },
  333. {
  334. path: '/staff/editRole',
  335. name: '编辑角色',
  336. hideInMenu: true,
  337. component: './staff/list/editRole',
  338. },
  339. {
  340. path: '/staff/list/addRole',
  341. name: '添加角色',
  342. hideInMenu: true,
  343. component: './staff/list/addRole',
  344. },
  345. ],
  346. },
  347. {
  348. path: '/carouselFigure',
  349. name: '轮播图管理',
  350. component: '../layouts/BlankLayout',
  351. routes: [
  352. {
  353. path: '/carouselFigure/carouselFigureList',
  354. name: '轮播图列表',
  355. component: './carouselFigure/carouselFigureList',
  356. },
  357. {
  358. path: '/carouselFigure/editCarousel',
  359. name: '轮播图编辑',
  360. hideInMenu: true,
  361. component: './carouselFigure/editCarousel',
  362. },
  363. {
  364. path: '/carouselFigure/advertisingList',
  365. name: '开屏广告',
  366. component: './carouselFigure/advertisingList',
  367. },
  368. {
  369. path: '/carouselFigure/editAdvertising',
  370. name: '开屏广告编辑',
  371. hideInMenu: true,
  372. component: './carouselFigure/editAdvertising',
  373. },
  374. ],
  375. },
  376. {
  377. path: '/system',
  378. name: '系统管理',
  379. component: '../layouts/BlankLayout',
  380. routes: [
  381. {
  382. path: '/system/messageList',
  383. name: '客户留言',
  384. component: './system/messageList',
  385. },
  386. {
  387. path: '/system/report',
  388. name: '报表数据',
  389. component: './system/report',
  390. },
  391. {
  392. path: '/system/intention',
  393. name: '意向值',
  394. component: './system/intention',
  395. },
  396. {
  397. path: '/system/housingPolicy',
  398. name: '购房政策维护',
  399. component: './system/housingPolicy',
  400. },
  401. {
  402. path: '/system/editPolicy',
  403. name: '购房政策编辑',
  404. hideInMenu: true,
  405. component: './system/editPolicy',
  406. },
  407. {
  408. path: '/system/document/list',
  409. name: '客户资料',
  410. component: './system/document/list',
  411. },
  412. {
  413. path: '/system/document/audit',
  414. name: '客户资料审核',
  415. hideInMenu: true,
  416. component: './system/document/audit',
  417. },
  418. ],
  419. },
  420. {
  421. path: '/third',
  422. name: '第三方管理',
  423. component: '../layouts/BlankLayout',
  424. routes: [
  425. {
  426. path: '/third/thirdList',
  427. name: '第三方公司',
  428. component: './third/thirdList',
  429. },
  430. {
  431. path: '/third/editThirdParty',
  432. name: '编辑活动',
  433. hideInMenu: true,
  434. component: './third/editThirdParty',
  435. },
  436. ],
  437. },
  438. {
  439. component: './404',
  440. },
  441. ],
  442. },
  443. {
  444. component: './404',
  445. },
  446. ],
  447. },
  448. {
  449. component: './404',
  450. },
  451. ];