routes.js 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  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: '/building',
  34. name: '项目管理',
  35. icon: 'control',
  36. component: '../layouts/BlankLayout',
  37. routes: [
  38. {
  39. path: '/building/list',
  40. name: '项目列表',
  41. component: './building/List',
  42. },
  43. {
  44. path: '/building/add',
  45. name: '项目维护',
  46. component: './building/Edit',
  47. hideInMenu: true,
  48. },
  49. {
  50. path: '/building/type',
  51. name: '项目类型',
  52. component: './building/type/index',
  53. },
  54. {
  55. path: '/building/type/edi',
  56. name: '项目类型编辑',
  57. hideInMenu: true,
  58. component: './building/type/edi',
  59. },
  60. {
  61. path: '/building/Developers',
  62. name: '品牌开发商',
  63. component: './building/Developers',
  64. },
  65. {
  66. path: '/building/Developers/Edit',
  67. name: '品牌开发商编辑',
  68. hideInMenu: true,
  69. component: './building/Developers/Edit',
  70. },
  71. ],
  72. },
  73. {
  74. path: '/customer',
  75. name: '客户管理',
  76. component: '../layouts/BlankLayout',
  77. routes: [
  78. {
  79. path: '/customer/customer/list',
  80. name: '客户列表',
  81. component: './customer/Customer/index',
  82. },
  83. {
  84. path: '/customer/customerlist/privateCustomerDetail',
  85. name: '私客详情',
  86. hideInMenu: true,
  87. component: './customer/Customer/PrivateCustomer/CustomerDetail',
  88. },
  89. {
  90. path: '/customer/customer/StatusChange',
  91. name: '状态变更',
  92. hideInMenu: true,
  93. component: './customer/Customer/StatusChange',
  94. },
  95. {
  96. path: '/customer/customerlist/publicCustomerDetail',
  97. name: '公客详情',
  98. hideInMenu: true,
  99. component: './customer/Customer/PublicCustomer/publicCustomerDetail',
  100. },
  101. {
  102. path: '/customer/recommend/channel',
  103. name: '经纪人报备',
  104. component: './recommend/channel',
  105. },
  106. {
  107. path: '/customer/recommend/channel/audit',
  108. name: '到访确认',
  109. hideInMenu: true,
  110. component: './recommend/channel/audit',
  111. },
  112. {
  113. path: '/customer/recommend/customer',
  114. name: '普通客户推荐',
  115. component: './recommend/customer',
  116. },
  117. {
  118. path: '/customer/recommend/customer/audit',
  119. name: '客户审核',
  120. hideInMenu: true,
  121. component: './recommend/customer/audit',
  122. },
  123. ],
  124. },
  125. {
  126. path: '/Live',
  127. name: '视频直播',
  128. component: '../layouts/BlankLayout',
  129. routes: [
  130. {
  131. path: '/Live/LiveActivity/List',
  132. name: '直播活动',
  133. component: './Live/LiveActivity/List',
  134. },
  135. {
  136. path: '/Live/LiveActivity/Edit',
  137. name: '编辑活动',
  138. hideInMenu: true,
  139. component: './Live/LiveActivity/Edit',
  140. },
  141. {
  142. path: '/Live/LiveActivity/add',
  143. name: '新增活动',
  144. hideInMenu: true,
  145. component: './Live/LiveActivity/add',
  146. },
  147. {
  148. path: '/Live/video/List',
  149. name: '视频',
  150. component: './Live/video/List',
  151. },
  152. {
  153. path: '/Live/video/Edit',
  154. name: '编辑视频',
  155. hideInMenu: true,
  156. component: './Live/video/Edit',
  157. },
  158. ],
  159. },
  160. {
  161. path: '/activity',
  162. name: '活动管理',
  163. component: '../layouts/BlankLayout',
  164. routes: [
  165. {
  166. path: '/activity/groupRoomActivity',
  167. name: '团房活动',
  168. component: './activity/groupRoomActivity',
  169. },
  170. {
  171. path: '/activity/groupRoomActivity/detail',
  172. name: '活动详情',
  173. hideInMenu: true,
  174. component: './activity/groupRoomActivity/detail',
  175. },
  176. {
  177. path: '/activity/groupRoomActivity/edit',
  178. name: '编辑活动',
  179. hideInMenu: true,
  180. component: './activity/groupRoomActivity/edit',
  181. },
  182. {
  183. path: '/activity/groupRoomActivity/registrationRecord',
  184. name: '报名记录',
  185. hideInMenu: true,
  186. component: './activity/groupRoomActivity/registrationRecord',
  187. },
  188. {
  189. path: '/activity/lookHouseActivity',
  190. name: '一键带看',
  191. component: './activity/lookHouseActivity',
  192. },
  193. {
  194. path: '/activity/lookHouseActivity/detail',
  195. name: '活动详情',
  196. hideInMenu: true,
  197. component: './activity/lookHouseActivity/detail',
  198. },
  199. {
  200. path: '/activity/lookHouseActivity/edit',
  201. name: '编辑活动',
  202. hideInMenu: true,
  203. component: './activity/lookHouseActivity/edit',
  204. },
  205. {
  206. path: '/activity/lookHouseActivity/registrationRecord',
  207. name: '报名记录',
  208. hideInMenu: true,
  209. component: './activity/lookHouseActivity/registrationRecord',
  210. },
  211. {
  212. path: '/activity/SignupActivity',
  213. name: '报名活动',
  214. component: './activity/SignupActivity',
  215. },
  216. {
  217. path: '/activity/SignupActivity/detail',
  218. name: '活动详情',
  219. hideInMenu: true,
  220. component: './activity/SignupActivity/detail',
  221. },
  222. {
  223. path: '/activity/SignupActivity/edit',
  224. name: '编辑活动',
  225. hideInMenu: true,
  226. component: './activity/SignupActivity/edit',
  227. },
  228. {
  229. path: '/activity/SignupActivity/registrationRecord',
  230. name: '报名记录',
  231. hideInMenu: true,
  232. component: './activity/SignupActivity/registrationRecord',
  233. },
  234. ],
  235. },
  236. {
  237. path: '/news',
  238. name: '资讯管理',
  239. component: '../layouts/BlankLayout',
  240. routes: [
  241. {
  242. path: '/news/type/NewsType',
  243. name: '资讯类型',
  244. component: './news/type/NewsType',
  245. },
  246. {
  247. path: '/news/type/editNews',
  248. name: '编辑资讯类型',
  249. hideInMenu: true,
  250. component: './news/type/editNews',
  251. },
  252. {
  253. path: '/news/list/List',
  254. name: '资讯列表',
  255. component: './news/list/List',
  256. },
  257. {
  258. path: '/news/list/Edit',
  259. name: '编辑资讯',
  260. hideInMenu: true,
  261. component: './news/list/Edit',
  262. },
  263. //+购房百科
  264. {
  265. path: '/news/Sellhouse/index',
  266. name: '购房百科',
  267. component: './system/Sellhouse/index',
  268. },
  269. {
  270. path: '/news/houseTypes/index',
  271. name: '购房百百科类型',
  272. component: './system/Sellhouse/houseTypes/index',
  273. },
  274. {
  275. path: '/news/Sellhouse/Edit',
  276. name: '编辑购房百科',
  277. hideInMenu: true,
  278. component: './system/Sellhouse/Edit',
  279. },
  280. {
  281. path: '/news/Sellhouse/houseTypes/Newindex',
  282. name: '编辑购房百百科类型',
  283. hideInMenu: true,
  284. component: './system/Sellhouse/houseTypes/Newindex',
  285. },
  286. ],
  287. },
  288. {
  289. path: '/channel',
  290. name: '渠道管理',
  291. component: '../layouts/BlankLayout',
  292. routes: [
  293. {
  294. path: '/channel/Channel/List',
  295. name: '渠道管理',
  296. component: './channel/Channel/List',
  297. },
  298. {
  299. path: '/channel/Channel/Edit',
  300. name: '编辑渠道',
  301. hideInMenu: true,
  302. component: './channel/Channel/Edit',
  303. },
  304. {
  305. path: '/channel/Agent/List',
  306. name: '经纪人',
  307. hideInMenu: true,
  308. component: './channel/Agent/List',
  309. },
  310. {
  311. path: '/channel/brokerList',
  312. name: '经纪人',
  313. hideInMenu: true,
  314. component: './channel/brokerList',
  315. },
  316. {
  317. path: '/channel/recommendClients',
  318. name: '渠道推荐',
  319. hideInMenu: true,
  320. component: './channel/recommendClients',
  321. },
  322. // {
  323. // path: '/channel/InviteClients',
  324. // name: '邀请经纪人',
  325. // hideInMenu: true,
  326. // component: './channel/InviteClients',
  327. // },
  328. {
  329. path: '/channel/independentList',
  330. name: '经纪人',
  331. component: './channel/independentList/index',
  332. },
  333. // {
  334. // path: '/channel/newCustomer',
  335. // name: '引进注册用户',
  336. // hideInMenu: true,
  337. // component: './channel/newCustomer',
  338. // },
  339. // {
  340. // path: '/channel/newCustomer/dataRecord',
  341. // name: '注册用户',
  342. // hideInMenu: true,
  343. // component: './channel/newCustomer/dataRecord',
  344. // },
  345. // {
  346. // path: '/channel/newCustomer/visitNum',
  347. // name: '访问次数',
  348. // hideInMenu: true,
  349. // component: './channel/newCustomer/visitNum',
  350. // },
  351. // {
  352. // path: '/channel/newCustomer/personNum',
  353. // name: '访问人数',
  354. // hideInMenu: true,
  355. // component: './channel/newCustomer/personNum',
  356. // },
  357. ],
  358. },
  359. {
  360. //帮我找房页面+
  361. path: '/findRoom',
  362. name: '需求反馈',
  363. component: '../layouts/BlankLayout',
  364. routes: [
  365. {
  366. path: '/findRoom/buyRoom',
  367. name: '找房需求',
  368. component: './findRoom/buyRoom',
  369. },
  370. {
  371. path: '/findRoom/buyRoom/audit',
  372. name: '回访确认',
  373. hideInMenu: true,
  374. component: './findRoom/buyRoom/audit',
  375. },
  376. {
  377. path: '/findRoom/rent',
  378. name: '租房需求',
  379. component: './findRoom/rent',
  380. },
  381. {
  382. path: '/findRoom/rent/audit',
  383. name: '回访确认',
  384. hideInMenu: true,
  385. component: './findRoom/rent/audit',
  386. },
  387. {
  388. path: '/findRoom/overseas',
  389. name: '海外需求',
  390. component: './findRoom/overseas',
  391. },
  392. {
  393. path: '/findRoom/overseas/audit',
  394. name: '回访确认',
  395. hideInMenu: true,
  396. component: './findRoom/overseas/audit',
  397. },
  398. {
  399. path: '/findRoom/addedValueService',
  400. name: '增值服务',
  401. component: './findRoom/addedValueService',
  402. },
  403. {
  404. path: '/findRoom/addedValueService/audit',
  405. name: '回访确认',
  406. hideInMenu: true,
  407. component: './findRoom/addedValueService/audit',
  408. },
  409. {
  410. path: '/findRoom/setting',
  411. name: '回访设置',
  412. component: './findRoom/setting',
  413. },
  414. {
  415. path: '/findRoom/messageList',
  416. name: '客户留言',
  417. component: './system/messageList',
  418. },
  419. ],
  420. },
  421. {
  422. //我的课堂+
  423. path: '/course',
  424. name: '我的课堂',
  425. component: '../layouts/BlankLayout',
  426. routes: [
  427. {
  428. path: '/course/List',
  429. name: '课程管理',
  430. component: './course/List',
  431. },
  432. {
  433. path: '/course/Edit',
  434. name: '课程编辑',
  435. hideInMenu: true,
  436. component: './course/Edit',
  437. },
  438. ],
  439. },
  440. {
  441. path: '/carouselFigure',
  442. name: '资源位管理',
  443. component: '../layouts/BlankLayout',
  444. routes: [
  445. {
  446. path: '/carouselFigure/carouselFigureList',
  447. name: '轮播图',
  448. component: './carouselFigure/carouselFigureList',
  449. },
  450. {
  451. path: '/carouselFigure/editCarousel',
  452. name: '轮播图编辑',
  453. hideInMenu: true,
  454. component: './carouselFigure/editCarousel',
  455. },
  456. {
  457. path: '/carouselFigure/advertisingList',
  458. name: '开屏广告',
  459. component: './carouselFigure/advertisingList',
  460. },
  461. {
  462. path: '/carouselFigure/editAdvertising',
  463. name: '开屏广告编辑',
  464. hideInMenu: true,
  465. component: './carouselFigure/editAdvertising',
  466. },
  467. {
  468. path: '/carouselFigure/customImg/list',
  469. name: '其他',
  470. component: './carouselFigure/customImg/list',
  471. },
  472. {
  473. path: '/carouselFigure/customImg/edit',
  474. name: '其他编辑',
  475. hideInMenu: true,
  476. component: './carouselFigure/customImg/edit',
  477. },
  478. ],
  479. },
  480. {
  481. path: '/',
  482. name: '系统管理',
  483. component: '../layouts/BlankLayout',
  484. routes: [
  485. {
  486. path: '/system/intention',
  487. name: '意向值',
  488. component: './system/intention',
  489. },
  490. {
  491. path: '/staff/Staff/List',
  492. name: '员工列表',
  493. component: './staff/Staff/List',
  494. },
  495. {
  496. path: '/staff/Staff/Edit',
  497. name: '编辑员工',
  498. hideInMenu: true,
  499. component: './staff/Staff/Edit',
  500. },
  501. {
  502. path: '/staff/Role/List',
  503. name: '角色管理',
  504. component: './staff/Role/List',
  505. },
  506. {
  507. path: '/staff/Role/Edit',
  508. name: '编辑角色',
  509. hideInMenu: true,
  510. component: './staff/Role/Edit',
  511. },
  512. {
  513. path: '/staff/Organization/List',
  514. name: '组织架构',
  515. component: './staff/Organization',
  516. },
  517. ],
  518. },
  519. {
  520. path: '/statistics',
  521. name: '数据统计',
  522. component: '../layouts/BlankLayout',
  523. // hideInMenu: true,
  524. routes: [
  525. {
  526. path: '/statistics/dataReport',
  527. name: '数据报表',
  528. component: './statistics/dataReport',
  529. },
  530. {
  531. path: '/statistics/activity',
  532. name: '活动统计',
  533. component: './statistics/activity',
  534. },
  535. ],
  536. },
  537. {
  538. component: './404',
  539. },
  540. ],
  541. },
  542. {
  543. component: './404',
  544. },
  545. ],
  546. },
  547. {
  548. component: './404',
  549. },
  550. ];