routes.js 24KB

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