routes.js 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807
  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/customerlist/list',
  91. // name: '客户列表old',
  92. // component: './customer/customerlist/index copy.jsx',
  93. // },
  94. // {
  95. // path: '/customer/customerlist/customerDetail',
  96. // name: '私客详情',
  97. // hideInMenu: true,
  98. // component: './customer/customerlist/customerDetail',
  99. // },
  100. {
  101. path: '/customer/customer/StatusChange',
  102. name: '状态变更',
  103. hideInMenu: true,
  104. component: './customer/Customer/StatusChange',
  105. },
  106. // {
  107. // path: '/customer/drift/list',
  108. // name: '游客列表',
  109. // component: './customer/drift/index',
  110. // },
  111. {
  112. path: '/customer/customerlist/publicCustomerDetail',
  113. name: '公客详情',
  114. hideInMenu: true,
  115. component: './customer/Customer/PublicCustomer/publicCustomerDetail',
  116. },
  117. {
  118. path: '/customer/recommend/channel',
  119. name: '经纪人报备',
  120. component: './recommend/channel',
  121. },
  122. {
  123. path: '/customer/recommend/channel/audit',
  124. name: '到访确认',
  125. hideInMenu: true,
  126. component: './recommend/channel/audit',
  127. },
  128. {
  129. path: '/customer/recommend/customer',
  130. name: '普通客户推荐',
  131. component: './recommend/customer',
  132. },
  133. {
  134. path: '/customer/recommend/customer/audit',
  135. name: '客户审核',
  136. hideInMenu: true,
  137. component: './recommend/customer/audit',
  138. },
  139. ],
  140. },
  141. {
  142. path: '/staff',
  143. name: '员工管理',
  144. component: '../layouts/BlankLayout',
  145. routes: [
  146. {
  147. path: '/staff/Staff/List',
  148. name: '员工列表',
  149. component: './staff/Staff/List',
  150. },
  151. {
  152. path: '/staff/Staff/Edit',
  153. name: '编辑员工',
  154. hideInMenu: true,
  155. component: './staff/Staff/Edit',
  156. },
  157. {
  158. path: '/staff/Role/List',
  159. name: '角色管理',
  160. component: './staff/Role/List',
  161. },
  162. {
  163. path: '/staff/Role/Edit',
  164. name: '编辑角色',
  165. hideInMenu: true,
  166. component: './staff/Role/Edit',
  167. },
  168. {
  169. path: '/staff/Organization/List',
  170. name: '组织架构',
  171. component: './staff/Organization',
  172. },
  173. // {
  174. // path: '/staff/list/distribution',
  175. // name: '分配归属',
  176. // hideInMenu: true,
  177. // component: './staff/list/distribution',
  178. // },
  179. ],
  180. },
  181. {
  182. path: '/Live',
  183. name: '视频直播',
  184. component: '../layouts/BlankLayout',
  185. routes: [
  186. {
  187. path: '/Live/LiveActivity/List',
  188. name: '直播活动',
  189. component: './Live/LiveActivity/List',
  190. },
  191. {
  192. path: '/Live/LiveActivity/Edit',
  193. name: '编辑活动',
  194. hideInMenu: true,
  195. component: './Live/LiveActivity/Edit',
  196. },
  197. {
  198. path: '/Live/LiveActivity/add',
  199. name: '新增活动',
  200. hideInMenu: true,
  201. component: './Live/LiveActivity/add',
  202. },
  203. {
  204. path: '/Live/video/List',
  205. name: '视频',
  206. component: './Live/video/List',
  207. },
  208. {
  209. path: '/Live/video/Edit',
  210. name: '编辑视频',
  211. hideInMenu: true,
  212. component: './Live/video/Edit',
  213. },
  214. ],
  215. },
  216. {
  217. path: '/activity',
  218. name: '活动管理',
  219. component: '../layouts/BlankLayout',
  220. routes: [
  221. {
  222. path: '/activity/groupRoomActivity',
  223. name: '团房活动',
  224. component: './activity/groupRoomActivity',
  225. },
  226. {
  227. path: '/activity/groupRoomActivity/detail',
  228. name: '活动详情',
  229. hideInMenu: true,
  230. component: './activity/groupRoomActivity/detail',
  231. },
  232. {
  233. path: '/activity/groupRoomActivity/edit',
  234. name: '编辑活动',
  235. hideInMenu: true,
  236. component: './activity/groupRoomActivity/edit',
  237. },
  238. {
  239. path: '/activity/groupRoomActivity/registrationRecord',
  240. name: '报名记录',
  241. hideInMenu: true,
  242. component: './activity/groupRoomActivity/registrationRecord',
  243. },
  244. {
  245. path: '/activity/lookHouseActivity',
  246. name: '一键带看',
  247. component: './activity/lookHouseActivity',
  248. },
  249. {
  250. path: '/activity/lookHouseActivity/detail',
  251. name: '活动详情',
  252. hideInMenu: true,
  253. component: './activity/lookHouseActivity/detail',
  254. },
  255. {
  256. path: '/activity/lookHouseActivity/edit',
  257. name: '编辑活动',
  258. hideInMenu: true,
  259. component: './activity/lookHouseActivity/edit',
  260. },
  261. {
  262. path: '/activity/lookHouseActivity/registrationRecord',
  263. name: '报名记录',
  264. hideInMenu: true,
  265. component: './activity/lookHouseActivity/registrationRecord',
  266. },
  267. {
  268. path: '/activity/SignupActivity',
  269. name: '报名活动',
  270. component: './activity/SignupActivity',
  271. },
  272. {
  273. path: '/activity/SignupActivity/detail',
  274. name: '活动详情',
  275. hideInMenu: true,
  276. component: './activity/SignupActivity/detail',
  277. },
  278. {
  279. path: '/activity/SignupActivity/edit',
  280. name: '编辑活动',
  281. hideInMenu: true,
  282. component: './activity/SignupActivity/edit',
  283. },
  284. {
  285. path: '/activity/SignupActivity/registrationRecord',
  286. name: '报名记录',
  287. hideInMenu: true,
  288. component: './activity/SignupActivity/registrationRecord',
  289. },
  290. ],
  291. },
  292. {
  293. path: '/news',
  294. name: '资讯管理',
  295. component: '../layouts/BlankLayout',
  296. routes: [
  297. {
  298. path: '/news/type/NewsType',
  299. name: '资讯类型',
  300. component: './news/type/NewsType',
  301. },
  302. {
  303. path: '/news/type/editNews',
  304. name: '编辑资讯类型',
  305. hideInMenu: true,
  306. component: './news/type/editNews',
  307. },
  308. {
  309. path: '/news/list/List',
  310. name: '资讯列表',
  311. component: './news/list/List',
  312. },
  313. {
  314. path: '/news/list/Edit',
  315. name: '编辑资讯',
  316. hideInMenu: true,
  317. component: './news/list/Edit',
  318. },
  319. //+购房百科
  320. {
  321. path: '/news/Sellhouse/index',
  322. name: '购房百科',
  323. component: './system/Sellhouse/index',
  324. },
  325. {
  326. path: '/news/houseTypes/index',
  327. name: '购房百百科类型',
  328. component: './system/Sellhouse/houseTypes/index',
  329. },
  330. {
  331. path: '/news/Sellhouse/Edit',
  332. name: '编辑购房百科',
  333. hideInMenu: true,
  334. component: './system/Sellhouse/Edit',
  335. },
  336. {
  337. path: '/news/Sellhouse/houseTypes/Newindex',
  338. name: '编辑购房百百科类型',
  339. hideInMenu: true,
  340. component: './system/Sellhouse/houseTypes/Newindex',
  341. },
  342. ],
  343. },
  344. {
  345. path: '/channel',
  346. name: '渠道管理',
  347. component: '../layouts/BlankLayout',
  348. routes: [
  349. {
  350. path: '/channel/Channel/List',
  351. name: '渠道管理',
  352. component: './channel/Channel/List',
  353. },
  354. {
  355. path: '/channel/Channel/Edit',
  356. name: '编辑渠道',
  357. hideInMenu: true,
  358. component: './channel/Channel/Edit',
  359. },
  360. {
  361. path: '/channel/Agent/List',
  362. name: '经纪人',
  363. hideInMenu: true,
  364. component: './channel/Agent/List',
  365. },
  366. {
  367. path: '/channel/brokerList',
  368. name: '经纪人',
  369. hideInMenu: true,
  370. component: './channel/brokerList',
  371. },
  372. {
  373. path: '/channel/recommendClients',
  374. name: '渠道推荐',
  375. hideInMenu: true,
  376. component: './channel/recommendClients',
  377. },
  378. {
  379. path: '/channel/InviteClients',
  380. name: '邀请经纪人',
  381. hideInMenu: true,
  382. component: './channel/InviteClients',
  383. },
  384. {
  385. path: '/channel/independentList',
  386. name: '专业经纪人',
  387. component: './channel/independentList/index',
  388. },
  389. {
  390. path: '/channel/newCustomer',
  391. name: '引进注册用户',
  392. hideInMenu: true,
  393. component: './channel/newCustomer',
  394. },
  395. {
  396. path: '/channel/newCustomer/dataRecord',
  397. name: '注册用户',
  398. hideInMenu: true,
  399. component: './channel/newCustomer/dataRecord',
  400. },
  401. {
  402. path: '/channel/newCustomer/visitNum',
  403. name: '访问次数',
  404. hideInMenu: true,
  405. component: './channel/newCustomer/visitNum',
  406. },
  407. {
  408. path: '/channel/newCustomer/personNum',
  409. name: '访问人数',
  410. hideInMenu: true,
  411. component: './channel/newCustomer/personNum',
  412. },
  413. ],
  414. },
  415. {
  416. //帮我找房页面+
  417. path: '/findRoom',
  418. name: '需求反馈',
  419. component: '../layouts/BlankLayout',
  420. routes: [
  421. {
  422. path: '/findRoom/buyRoom',
  423. name: '找房需求',
  424. component: './findRoom/buyRoom',
  425. },
  426. {
  427. path: '/findRoom/buyRoom/audit',
  428. name: '回访确认',
  429. hideInMenu: true,
  430. component: './findRoom/buyRoom/audit',
  431. },
  432. {
  433. path: '/findRoom/rent',
  434. name: '租房需求',
  435. component: './findRoom/rent',
  436. },
  437. {
  438. path: '/findRoom/rent/audit',
  439. name: '回访确认',
  440. hideInMenu: true,
  441. component: './findRoom/rent/audit',
  442. },
  443. {
  444. path: '/findRoom/overseas',
  445. name: '海外需求',
  446. component: './findRoom/overseas',
  447. },
  448. {
  449. path: '/findRoom/overseas/audit',
  450. name: '回访确认',
  451. hideInMenu: true,
  452. component: './findRoom/overseas/audit',
  453. },
  454. {
  455. path: '/findRoom/addedValueService',
  456. name: '增值服务',
  457. component: './findRoom/addedValueService',
  458. },
  459. {
  460. path: '/findRoom/addedValueService/audit',
  461. name: '回访确认',
  462. hideInMenu: true,
  463. component: './findRoom/addedValueService/audit',
  464. },
  465. {
  466. path: '/findRoom/setting',
  467. name: '回访设置',
  468. component: './findRoom/setting',
  469. },
  470. {
  471. path: '/findRoom/messageList',
  472. name: '客户留言',
  473. component: './system/messageList',
  474. },
  475. // {
  476. // path: '/home/recommend/auditcopy',
  477. // name: '回访确认',
  478. // hideInMenu: true,
  479. // component: './home/Recommend/auditCopy',
  480. // },
  481. ],
  482. },
  483. {
  484. //我的课堂+
  485. path: '/course',
  486. name: '我的课堂',
  487. component: '../layouts/BlankLayout',
  488. routes: [
  489. {
  490. path: '/course/List',
  491. name: '课程管理',
  492. component: './course/List',
  493. },
  494. {
  495. path: '/course/Edit',
  496. name: '课程编辑',
  497. hideInMenu: true,
  498. component: './course/Edit',
  499. },
  500. ],
  501. },
  502. {
  503. path: '/carouselFigure',
  504. name: '资源位管理',
  505. component: '../layouts/BlankLayout',
  506. routes: [
  507. {
  508. path: '/carouselFigure/carouselFigureList',
  509. name: '轮播图',
  510. component: './carouselFigure/carouselFigureList',
  511. },
  512. {
  513. path: '/carouselFigure/editCarousel',
  514. name: '轮播图编辑',
  515. hideInMenu: true,
  516. component: './carouselFigure/editCarousel',
  517. },
  518. {
  519. path: '/carouselFigure/advertisingList',
  520. name: '开屏广告',
  521. component: './carouselFigure/advertisingList',
  522. },
  523. {
  524. path: '/carouselFigure/editAdvertising',
  525. name: '开屏广告编辑',
  526. hideInMenu: true,
  527. component: './carouselFigure/editAdvertising',
  528. },
  529. // {
  530. // path: '/carouselFigure/propagandaList',
  531. // name: '宣传位',
  532. // component: './carouselFigure/propagandaList',
  533. // },
  534. // {
  535. // path: '/carouselFigure/propaganda',
  536. // name: '宣传位编辑',
  537. // hideInMenu: true,
  538. // component: './carouselFigure/propaganda',
  539. // },
  540. {
  541. path: '/carouselFigure/customImg/list',
  542. name: '其他',
  543. component: './carouselFigure/customImg/list',
  544. },
  545. {
  546. path: '/carouselFigure/customImg/edit',
  547. name: '其他编辑',
  548. hideInMenu: true,
  549. component: './carouselFigure/customImg/edit',
  550. },
  551. ],
  552. },
  553. {
  554. path: '/system',
  555. name: '系统管理',
  556. component: '../layouts/BlankLayout',
  557. routes: [
  558. // {
  559. // path: '/system/messageList',
  560. // name: '客户留言',
  561. // component: './system/messageList',
  562. // },
  563. // {
  564. // path: '/system/report',
  565. // name: '报表数据',
  566. // component: './system/report',
  567. // },
  568. {
  569. path: '/system/intention',
  570. name: '意向值',
  571. component: './system/intention',
  572. },
  573. // {
  574. // path: '/system/housingPolicy/list',
  575. // name: '购房百科',
  576. // component: './system/housingPolicy/List',
  577. // },
  578. // {
  579. // path: '/system/housingPolicy/edit',
  580. // name: '购房百科编辑',
  581. // hideInMenu: true,
  582. // component: './system/housingPolicy/Edit',
  583. // },
  584. // {
  585. // path: '/system/editPolicy',
  586. // name: '购房政策编辑',
  587. // hideInMenu: true,
  588. // component: './system/editPolicy',
  589. // },
  590. // {
  591. // path: '/system/document/list',
  592. // name: '客户资料',
  593. // component: './system/document/list',
  594. // },
  595. // {
  596. // path: '/system/document/audit',
  597. // name: '客户资料审核',
  598. // hideInMenu: true,
  599. // component: './system/document/audit',
  600. // },
  601. // {
  602. // path: '/system/MiniappTheme',
  603. // name: '小程序主题',
  604. // component: './system/MiniappTheme',
  605. // },
  606. // {
  607. // path: '/system/MiniappTheme/Detail',
  608. // name: '小程序主题编辑',
  609. // component: './system/MiniappTheme/Detail',
  610. // hideInMenu: true,
  611. // },
  612. ],
  613. },
  614. {
  615. path: '/statistics',
  616. name: '数据统计',
  617. component: '../layouts/BlankLayout',
  618. // hideInMenu: true,
  619. routes: [
  620. {
  621. path: '/statistics/dataReport',
  622. name: '数据报表',
  623. component: './statistics/dataReport',
  624. },
  625. {
  626. path: '/statistics/activity',
  627. name: '活动统计',
  628. component: './statistics/activity',
  629. },
  630. ],
  631. },
  632. // {
  633. // path: '/statistical',
  634. // name: '数据统计',
  635. // component: '../layouts/BlankLayout',
  636. // routes: [
  637. // {
  638. // path: '/statistical',
  639. // redirect: '/statistical/monitor',
  640. // },
  641. // {
  642. // path: '/statistical/monitor',
  643. // name: '数据报表',
  644. // component: './statistical/Monitor',
  645. // },
  646. // {
  647. // path: '/statistical/activity',
  648. // name: '活动统计',
  649. // component: './statistical/activity',
  650. // },
  651. // {
  652. // path: '/statistical/activity/detail',
  653. // name: '查看详情',
  654. // hideInMenu: true,
  655. // component: './statistical/activity/detail',
  656. // },
  657. // {
  658. // path: '/statistical/activity/sharePersonNum',
  659. // name: '分享统计',
  660. // hideInMenu: true,
  661. // component: './statistical/activity/sharePersonNum',
  662. // },
  663. // {
  664. // path: '/statistical/activity/shareNum',
  665. // name: '分享统计',
  666. // hideInMenu: true,
  667. // component: './statistical/activity/shareNum',
  668. // },
  669. // {
  670. // path: '/statistical/activity/addRegistNum',
  671. // name: '分享统计',
  672. // hideInMenu: true,
  673. // component: './statistical/activity/addRegistNum',
  674. // },
  675. // {
  676. // path: '/statistical/activity/visitNum',
  677. // name: '访问统计',
  678. // hideInMenu: true,
  679. // component: './statistical/activity/visitNum',
  680. // },
  681. // {
  682. // path: '/statistical/activity/visitPersonNum',
  683. // name: '访问统计',
  684. // hideInMenu: true,
  685. // component: './statistical/activity/visitPersonNum',
  686. // },
  687. // {
  688. // path: '/statistical/building',
  689. // name: '项目统计',
  690. // component: './statistical/building',
  691. // },
  692. // {
  693. // path: '/statistical/consultant',
  694. // name: '置业顾问KPI',
  695. // component: './statistical/consultant',
  696. // },
  697. // {
  698. // path: '/statistical/userSource',
  699. // name: '用户来源',
  700. // component: './indexEcharts/userSource',
  701. // hideInMenu: true,
  702. // },
  703. // {
  704. // path: '/statistical/newUsers',
  705. // name: '新增用户',
  706. // component: './indexEcharts/newUsers',
  707. // hideInMenu: true,
  708. // },
  709. // {
  710. // path: '/statistical/userBehavior',
  711. // name: '用户行为',
  712. // component: './indexEcharts/userBehavior',
  713. // hideInMenu: true,
  714. // },
  715. // {
  716. // path: '/statistical/building/detail',
  717. // name: '项目统计详情',
  718. // component: './statistical/building/detail',
  719. // hideInMenu: true,
  720. // },
  721. // {
  722. // path: '/statistical/consultant/table',
  723. // name: '客户总计',
  724. // hideInMenu: true,
  725. // component: './statistical/consultant/table',
  726. // },
  727. // {
  728. // path: '/statistical/consultant/newPersons',
  729. // name: '新增客户',
  730. // hideInMenu: true,
  731. // component: './statistical/consultant/table',
  732. // },
  733. // {
  734. // path: '/statistical/consultant/sharetable',
  735. // name: '分享次数',
  736. // hideInMenu: true,
  737. // component: './statistical/consultant/sharetable',
  738. // },
  739. // {
  740. // path: '/statistical/consultant/visitPersons',
  741. // name: '分享访问人数',
  742. // hideInMenu: true,
  743. // component: './statistical/consultant/visitPersons',
  744. // },
  745. // {
  746. // path: '/statistical/consultant/visitNum',
  747. // name: '分享访问次数',
  748. // hideInMenu: true,
  749. // component: './statistical/consultant/visitNum',
  750. // },
  751. // {
  752. // path: '/statistical/consultant/sharePersons',
  753. // name: '分享拓客',
  754. // hideInMenu: true,
  755. // component: './statistical/consultant/table',
  756. // },
  757. // {
  758. // path: '/statistical/consultant/homePagePersons',
  759. // name: '主页访问人数',
  760. // hideInMenu: true,
  761. // component: './statistical/consultant/homePagePersons',
  762. // },
  763. // {
  764. // path: '/statistical/consultant/homepageNum',
  765. // name: '主页访问次数',
  766. // hideInMenu: true,
  767. // component: './statistical/consultant/table',
  768. // },
  769. // {
  770. // path: '/statistical/consultant/chatPersons',
  771. // name: '咨询数',
  772. // hideInMenu: true,
  773. // component: './statistical/consultant/table',
  774. // },
  775. // {
  776. // path: '/statistical/consultant/favorNum',
  777. // name: '点赞数',
  778. // hideInMenu: true,
  779. // component: './statistical/consultant/table',
  780. // },
  781. // ],
  782. // },
  783. {
  784. component: './404',
  785. },
  786. ],
  787. },
  788. {
  789. component: './404',
  790. },
  791. ],
  792. },
  793. {
  794. component: './404',
  795. },
  796. ];