routes.js 27KB

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