router.config.js 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. // eslint-disable-next-line
  2. import { UserLayout, BasicLayout, RouteView, BlankLayout, PageView } from '@/layouts'
  3. export const asyncRouterMap = [
  4. {
  5. path: '/',
  6. name: 'index',
  7. component: BasicLayout,
  8. meta: {
  9. title: '首页'
  10. },
  11. redirect: '/home',
  12. children: [{
  13. path: '/home',
  14. name: 'home',
  15. redirect: '/home',
  16. component: PageView,
  17. meta: {
  18. title: '首页',
  19. icon: 'home'
  20. },
  21. hideChildrenInMenu: true,
  22. children: [{
  23. path: '/home',
  24. name: 'home',
  25. component: () => import(/* webpackChunkName: "home" */ '@/views/Home'),
  26. meta: {
  27. title: '首页',
  28. icon: 'home',
  29. hidden: true
  30. }
  31. },
  32. {
  33. path: '/changePwd',
  34. name: 'changePwd',
  35. component: () => import(/* webpackChunkName: "home" */ '@/views/user/ChangePwd'),
  36. meta: {
  37. title: '修改密码',
  38. icon: 'home',
  39. hidden: true
  40. }
  41. }
  42. ]
  43. },
  44. // Car washing machine management center
  45. {
  46. path: '/CarWashManagement',
  47. redirect: '/CarWashManagement/CarWashManagement',
  48. component: PageView,
  49. meta: {
  50. title: '洗车机管理中心',
  51. icon: 'setting'
  52. // permission: 'M_setting_0'
  53. },
  54. children: [{
  55. path: '/CarWashManagement/CarWashManagement',
  56. name: 'CarWashManagement',
  57. component: () => import('@/views/CarWashManagement/CarWashManagement.vue'),
  58. meta: {
  59. title: '洗车机管理',
  60. icon: 'database'
  61. // permission: 'M_sys_dataDictionary'
  62. }
  63. }]
  64. },
  65. // 优惠券中心
  66. {
  67. path: '/CouponCenter',
  68. redirect: '/CouponCenter/CreateCoupons',
  69. component: PageView,
  70. meta: {
  71. title: '优惠券中心',
  72. icon: 'setting'
  73. // permission: 'M_setting_0'
  74. },
  75. children: [{
  76. path: '/CouponCenter/CreateCoupons',
  77. name: 'CouponCenter',
  78. component: () => import('@/views/CouponCenter/CreateCoupons.vue'),
  79. meta: {
  80. title: '创建优惠券',
  81. icon: 'database'
  82. // permission: 'M_sys_dataDictionary'
  83. }
  84. }]
  85. },
  86. {
  87. path: '/Order',
  88. redirect: '/Order/OrderCenter',
  89. name: 'Order',
  90. component: PageView,
  91. meta: {
  92. title: '订单中心',
  93. icon: 'snippets'
  94. // permission: 'M_setting_0'
  95. },
  96. children: [
  97. {
  98. path: '/Order/OrderCenter',
  99. name: 'OrderCenter',
  100. component: () => import('@/views/Order/OrderCenter.vue'),
  101. meta: {
  102. title: '订单中心',
  103. icon: 'snippets'
  104. // permission: 'M_sys_dataDictionary'
  105. }
  106. }
  107. ]
  108. },
  109. {
  110. path: '/RefundRecord',
  111. redirect: '/RefundRecord/RefundRecord',
  112. component: PageView,
  113. meta: {
  114. title: '退单记录',
  115. icon: 'setting'
  116. // permission: 'M_setting_0'
  117. },
  118. children: [{
  119. path: '/RefundRecord/RefundRecord',
  120. name: 'RefundRecord',
  121. component: () => import('@/views/RefundRecord/RefundRecord.vue'),
  122. meta: {
  123. title: '退单记录',
  124. icon: 'setting'
  125. // permission: 'M_sys_dataDictionary'
  126. }
  127. }
  128. ]
  129. },
  130. {
  131. path: '/CouponStatistics',
  132. redirect: '/CouponStatistics/CouponStatistics',
  133. component: PageView,
  134. meta: {
  135. title: '优惠券统计',
  136. icon: 'setting'
  137. // permission: 'M_setting_0'
  138. },
  139. children: [{
  140. path: '/CouponStatistics/CouponStatisticsList',
  141. name: 'CouponStatisticsList',
  142. component: () => import('@/views/CouponStatistics/CouponStatisticsList.vue'),
  143. meta: {
  144. title: '优惠券统计',
  145. icon: 'setting'
  146. // permission: 'M_sys_dataDictionary'
  147. }
  148. },
  149. {
  150. path: '/CouponStatistics/CouponStatisticsDetail',
  151. name: 'CouponStatisticsDetail',
  152. component: () => import('@/views/CouponStatistics/CouponStatisticsDetail.vue'),
  153. meta: {
  154. title: '优惠券领取详情',
  155. icon: 'setting'
  156. // permission: 'M_sys_dataDictionary'
  157. }
  158. }
  159. ]
  160. },
  161. {
  162. path: '/AvailableCoupon',
  163. redirect: '/AvailableCoupon/AvailableCoupon',
  164. component: PageView,
  165. meta: {
  166. title: '可使用优惠券',
  167. icon: 'setting'
  168. // permission: 'M_setting_0'
  169. },
  170. children: [
  171. {
  172. path: '/AvailableCoupon/AvailableCoupon',
  173. name: 'AvailableCoupon',
  174. component: () => import(/* webpackChunkName: "auth" */ '@/views/AvailableCoupon/AvailableCoupon.vue'),
  175. meta: { title: '可使用优惠券', icon: 'user' }
  176. }
  177. ]
  178. },
  179. {
  180. path: '/auth',
  181. redirect: '/auth/userList',
  182. component: PageView,
  183. meta: { title: '后台权限管理', icon: 'lock'
  184. // permission: 'M_auth_0' ,
  185. },
  186. children: [
  187. {
  188. path: '/auth/userList',
  189. name: 'powerUserList',
  190. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  191. meta: { title: '用户管理', icon: 'user'
  192. // permission: 'M_auth_userList' ,
  193. }
  194. },
  195. {
  196. path: '/auth/roleList',
  197. name: 'powerRoleList',
  198. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  199. meta: { title: '角色管理', icon: 'solution'
  200. // permission: 'M_auth_roleList',
  201. }
  202. },
  203. {
  204. path: '/menusAuth/menu',
  205. name: 'powerMenu',
  206. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/menu/menu.vue'),
  207. meta: {
  208. title: '菜单管理',
  209. icon: 'profile',
  210. permission: 'M_menusAuth_menu'
  211. }
  212. }
  213. ]
  214. },
  215. {
  216. path: '/setting',
  217. redirect: '/setting/userList',
  218. component: PageView,
  219. meta: {
  220. title: '系统设置',
  221. icon: 'setting'
  222. // permission: 'M_setting_0'
  223. },
  224. children: [{
  225. path: '/setting/dataDictionary',
  226. name: 'powerDD',
  227. component: () => import(/* webpackChunkName: "setting" */ '@/views/power/dataDictionary/dataDictionary.vue'),
  228. meta: {
  229. title: '数据字典管理',
  230. icon: 'database'
  231. // permission: 'M_sys_dataDictionary'
  232. }
  233. },
  234. {
  235. path: '/setting/register',
  236. name: 'powerRegister',
  237. component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
  238. meta: {
  239. title: '参数管理',
  240. icon: 'key'
  241. // permission: 'M_sys_register'
  242. }
  243. },
  244. {
  245. path: '/setting/jobs',
  246. name: 'powerJobs',
  247. component: () => import(/* webpackChunkName: "setting" */ '@/views/power/job/jobs.vue'),
  248. meta: {
  249. title: '定时器',
  250. icon: 'alert'
  251. // permission: 'M_sys_job'
  252. }
  253. }
  254. ]
  255. }
  256. ]
  257. },
  258. {
  259. path: '*',
  260. redirect: '/404',
  261. hidden: true
  262. }
  263. ]
  264. /**
  265. * 基础路由
  266. * @type { *[] }
  267. */
  268. export const constantRouterMap = [{
  269. path: '/user',
  270. component: UserLayout,
  271. redirect: '/user/login',
  272. hidden: true,
  273. children: [{
  274. path: 'login',
  275. name: 'login',
  276. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  277. },
  278. {
  279. path: 'register',
  280. name: 'register',
  281. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  282. },
  283. {
  284. path: 'register-result',
  285. name: 'registerResult',
  286. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  287. },
  288. {
  289. path: 'recover',
  290. name: 'recover',
  291. component: undefined
  292. }
  293. ]
  294. },
  295. {
  296. path: '/404',
  297. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  298. }
  299. ]