知与行后台管理端

routes.js 11KB

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