routes.js 27KB

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