知与行后台管理端

routes.js 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  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: '首页',
  29. component: './Welcome',
  30. },
  31. {
  32. path: '/indexEcharts',
  33. name: '图表管理',
  34. component: '../layouts/BlankLayout',
  35. hideInMenu: true,
  36. routes: [
  37. {
  38. path: '/indexEcharts/userSource',
  39. name: '用户来源',
  40. component: './indexEcharts/userSource',
  41. },
  42. {
  43. path: '/indexEcharts/newUsers',
  44. name: '新增用户',
  45. component: './indexEcharts/newUsers',
  46. },
  47. {
  48. path: '/indexEcharts/userBehavior',
  49. name: '用户行为',
  50. component: './indexEcharts/userBehavior',
  51. },
  52. ],
  53. },
  54. {
  55. path: '/building',
  56. name: '项目管理',
  57. component: '../layouts/BlankLayout',
  58. routes: [
  59. {
  60. path: '/building/list',
  61. name: '项目列表',
  62. component: './building/list/index',
  63. },
  64. {
  65. path: '/building/list/add',
  66. name: '项目添加', // 项目添加
  67. hideInMenu: true,
  68. component: './building/list/add/index',
  69. },
  70. {
  71. path: '/building/type',
  72. name: '项目类型',
  73. component: './building/type/index',
  74. },
  75. {
  76. path: '/building/type/edi',
  77. name: '项目类型编辑',
  78. hideInMenu: true,
  79. component: './building/type/edi',
  80. },
  81. ],
  82. },
  83. {
  84. path: '/customer',
  85. name: '客户管理',
  86. component: '../layouts/BlankLayout',
  87. routes: [
  88. {
  89. path: '/customer/customerlist/list',
  90. name: '客户列表',
  91. component: './customer/customerlist/index',
  92. },
  93. {
  94. path: '/customer/customerlist/customerDetail',
  95. name: '客户编辑',
  96. hideInMenu: true,
  97. component: './customer/customerlist/customerDetail',
  98. },
  99. {
  100. path: '/customer/drift/list',
  101. name: '游客列表',
  102. component: './customer/drift/index',
  103. },
  104. {
  105. path: '/customer/report/list',
  106. name: '报备客户',
  107. component: './customer/report/index',
  108. },
  109. {
  110. path: '/customer/recommendCustomer/list',
  111. name: '推荐客户',
  112. component: './customer/recommendCustomer/index',
  113. },
  114. {
  115. path: '/customer/recommendCustomer/audit',
  116. name: '客户审核',
  117. hideInMenu: true,
  118. component: './customer/recommendCustomer/audit',
  119. },
  120. {
  121. path: '/customer/independentList',
  122. name: '经纪人',
  123. component: './customer/independentList/index',
  124. },
  125. ],
  126. },
  127. {
  128. path: '/integralMall',
  129. name: '积分商城',
  130. component: '../layouts/BlankLayout',
  131. routes: [
  132. {
  133. path: '/integralMall/GoodsList',
  134. name: '商品列表',
  135. component: './integralMall/GoodsList',
  136. },
  137. {
  138. path: '/integralMall/achieve',
  139. name: '积分获取',
  140. component: './integralMall/achieve',
  141. },
  142. {
  143. path: '/integralMall/editGoods',
  144. name: '商品编辑',
  145. hideInMenu: true,
  146. component: './integralMall/editGoods',
  147. },
  148. {
  149. path: '/integralMall/exchangeRecords',
  150. name: '兑换记录',
  151. component: './integralMall/exchangeRecords',
  152. },
  153. {
  154. path: '/integralMall/writeOff',
  155. name: '商品核销',
  156. component: './integralMall/writeOff',
  157. },
  158. {
  159. path: '/integralMall/verifyList',
  160. name: '商品核销列表',
  161. hideInMenu: true,
  162. component: './integralMall/verifyList',
  163. },
  164. ],
  165. },
  166. {
  167. path: '/channel',
  168. name: '渠道管理',
  169. component: '../layouts/BlankLayout',
  170. routes: [
  171. {
  172. path: '/channel/channelList',
  173. name: '渠道管理',
  174. component: './channel/channelList',
  175. },
  176. {
  177. path: '/channel/addChannel',
  178. name: '添加渠道',
  179. hideInMenu: true,
  180. component: './channel/addChannel',
  181. },
  182. {
  183. path: '/channel/editChannel',
  184. name: '编辑渠道',
  185. hideInMenu: true,
  186. component: './channel/editChannel',
  187. },
  188. {
  189. path: '/channel/brokerList',
  190. name: '经纪人',
  191. component: './channel/brokerList',
  192. },
  193. {
  194. path: '/channel/recommendClients',
  195. name: '渠道推荐',
  196. hideInMenu: true,
  197. component: './channel/recommendClients',
  198. },
  199. {
  200. path: '/channel/InviteClients',
  201. name: '邀请客户',
  202. hideInMenu: true,
  203. component: './channel/InviteClients',
  204. },
  205. ],
  206. },
  207. {
  208. path: '/news',
  209. name: '资讯管理',
  210. component: '../layouts/BlankLayout',
  211. routes: [
  212. {
  213. path: '/news/type/NewsType',
  214. name: '资讯类型',
  215. component: './news/type/NewsType',
  216. },
  217. {
  218. path: '/news/type/editNews',
  219. name: '编辑资讯类型',
  220. hideInMenu: true,
  221. component: './news/type/editNews',
  222. },
  223. {
  224. path: '/news/list/NewsList',
  225. name: '资讯列表',
  226. component: './news/list/NewsList',
  227. },
  228. {
  229. path: '/news/list/editNewsList',
  230. name: '编辑资讯',
  231. hideInMenu: true,
  232. component: './news/list/editNewsList',
  233. },
  234. ],
  235. },
  236. {
  237. path: '/activity',
  238. name: '活动管理',
  239. component: '../layouts/BlankLayout',
  240. routes: [
  241. {
  242. path: '/activity/ActivityList',
  243. name: '活动列表',
  244. component: './activity/ActivityList',
  245. },
  246. {
  247. path: '/activity/editActivity',
  248. name: '编辑活动',
  249. hideInMenu: true,
  250. component: './activity/editActivity',
  251. },
  252. {
  253. path: '/activity/SignList',
  254. name: '报名列表',
  255. hideInMenu: true,
  256. component: './activity/SignList',
  257. },
  258. ],
  259. },
  260. {
  261. path: '/staff',
  262. name: '员工管理',
  263. component: '../layouts/BlankLayout',
  264. routes: [
  265. {
  266. path: '/staff/StaffList',
  267. name: '员工列表',
  268. component: './staff/list/StaffList',
  269. },
  270. {
  271. path: '/staff/editStaff',
  272. name: '编辑员工',
  273. hideInMenu: true,
  274. component: './staff/list/editStaff',
  275. },
  276. {
  277. path: '/staff/RoleList',
  278. name: '角色管理',
  279. component: './staff/list/RoleList',
  280. },
  281. {
  282. path: '/staff/editRole',
  283. name: '编辑角色',
  284. hideInMenu: true,
  285. component: './staff/list/editRole',
  286. },
  287. {
  288. path: '/staff/list/addRole',
  289. name: '添加角色',
  290. hideInMenu: true,
  291. component: './staff/list/addRole',
  292. },
  293. ],
  294. },
  295. {
  296. path: '/carouselFigure',
  297. name: '轮播图管理',
  298. component: '../layouts/BlankLayout',
  299. routes: [
  300. {
  301. path: '/carouselFigure/carouselFigureList',
  302. name: '轮播图列表',
  303. component: './carouselFigure/carouselFigureList',
  304. },
  305. {
  306. path: '/carouselFigure/editCarousel',
  307. name: '轮播图编辑',
  308. hideInMenu: true,
  309. component: './carouselFigure/editCarousel',
  310. },
  311. {
  312. path: '/carouselFigure/advertisingList',
  313. name: '开屏广告',
  314. component: './carouselFigure/advertisingList',
  315. },
  316. {
  317. path: '/carouselFigure/editAdvertising',
  318. name: '开屏广告编辑',
  319. hideInMenu: true,
  320. component: './carouselFigure/editAdvertising',
  321. },
  322. ],
  323. },
  324. {
  325. path: '/system',
  326. name: '系统管理',
  327. component: '../layouts/BlankLayout',
  328. routes: [
  329. {
  330. path: '/system/messageList',
  331. name: '客户留言',
  332. component: './system/messageList',
  333. },
  334. {
  335. path: '/system/report',
  336. name: '报表数据',
  337. component: './system/report',
  338. },
  339. {
  340. path: '/system/intention',
  341. name: '意向值',
  342. component: './system/intention',
  343. },
  344. {
  345. path: '/system/housingPolicy',
  346. name: '购房政策维护',
  347. component: './system/housingPolicy',
  348. },
  349. {
  350. path: '/system/editPolicy',
  351. name: '购房政策编辑',
  352. hideInMenu: true,
  353. component: './system/editPolicy',
  354. },
  355. ],
  356. },
  357. {
  358. component: './404',
  359. },
  360. ],
  361. },
  362. {
  363. component: './404',
  364. },
  365. ],
  366. },
  367. {
  368. component: './404',
  369. },
  370. ];