|
@@ -33,8 +33,7 @@ export const asyncRouterMap = [{
|
|
|
icon: 'home',
|
|
|
hiddenHeaderContent: true
|
|
|
}
|
|
|
- }
|
|
|
- ]
|
|
|
+ }]
|
|
|
},
|
|
|
{
|
|
|
path: '/changePwd',
|
|
@@ -55,110 +54,107 @@ export const asyncRouterMap = [{
|
|
|
icon: 'shop'
|
|
|
// permission: 'M_tenants_list'
|
|
|
},
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: '/shop/order',
|
|
|
- redirect: '/shop/order/list',
|
|
|
- name: 'shopOrder',
|
|
|
- component: RouteView,
|
|
|
+ children: [{
|
|
|
+ path: '/shop/order',
|
|
|
+ redirect: '/shop/order/list',
|
|
|
+ name: 'shopOrder',
|
|
|
+ component: RouteView,
|
|
|
+ meta: {
|
|
|
+ title: '订单管理',
|
|
|
+ icon: 'profile'
|
|
|
+ // permission: 'M_tenants_list'
|
|
|
+ },
|
|
|
+ hideChildrenInMenu: true,
|
|
|
+ children: [{
|
|
|
+ path: '/shop/order/list',
|
|
|
+ name: 'shopOrderList',
|
|
|
+ component: () => import(/* webpackChunkName: "tenants" */ '@/views/shop/shopOrder.vue'),
|
|
|
meta: {
|
|
|
- title: '订单管理',
|
|
|
- icon: 'profile'
|
|
|
+ title: '订单列表',
|
|
|
+ icon: 'profile',
|
|
|
+ hidden: true
|
|
|
// permission: 'M_tenants_list'
|
|
|
- },
|
|
|
- hideChildrenInMenu: true,
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: '/shop/order/list',
|
|
|
- name: 'shopOrderList',
|
|
|
- component: () => import(/* webpackChunkName: "tenants" */ '@/views/shop/shopOrder.vue'),
|
|
|
- meta: {
|
|
|
- title: '订单列表',
|
|
|
- icon: 'profile',
|
|
|
- hidden: true
|
|
|
- // permission: 'M_tenants_list'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/shop/order/detail/:id',
|
|
|
- name: 'shopOrderDetail',
|
|
|
- component: () => import(/* webpackChunkName: "tenants" */ '@/views/shop/orderDetail.vue'),
|
|
|
- meta: {
|
|
|
- title: '订单详情',
|
|
|
- icon: 'profile',
|
|
|
- hidden: true
|
|
|
- // permission: 'M_tenants_list'
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
- path: '/shop/goods',
|
|
|
- redirect: '/shop/goods/list',
|
|
|
- name: 'goodsList',
|
|
|
- component: RouteView,
|
|
|
+ path: '/shop/order/detail/:id',
|
|
|
+ name: 'shopOrderDetail',
|
|
|
+ component: () => import(/* webpackChunkName: "tenants" */ '@/views/shop/orderDetail.vue'),
|
|
|
meta: {
|
|
|
- title: '商品管理',
|
|
|
- icon: 'shopping'
|
|
|
+ title: '订单详情',
|
|
|
+ icon: 'profile',
|
|
|
+ hidden: true
|
|
|
// permission: 'M_tenants_list'
|
|
|
- },
|
|
|
- hideChildrenInMenu: true,
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: '/shop/goods/list',
|
|
|
- name: 'goodsListList',
|
|
|
- component: () => import(/* webpackChunkName: "tenants" */ '@/views/shop/goodsList.vue'),
|
|
|
- meta: {
|
|
|
- title: '商品列表',
|
|
|
- icon: 'shopping',
|
|
|
- hidden: true
|
|
|
- // permission: 'M_tenants_list'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/shop/goods/add',
|
|
|
- name: 'goodsListAdd',
|
|
|
- component: () => import(/* webpackChunkName: "tenants" */ '@/views/shop/goodsEdit.vue'),
|
|
|
- meta: {
|
|
|
- title: '新增商品',
|
|
|
- icon: 'shopping',
|
|
|
- hidden: true
|
|
|
- // permission: 'M_tenants_list'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/shop/goods/edit/:id',
|
|
|
- name: 'goodsListEdit',
|
|
|
- component: () => import(/* webpackChunkName: "tenants" */ '@/views/shop/goodsEdit.vue'),
|
|
|
- meta: {
|
|
|
- title: '编辑商品',
|
|
|
- icon: 'shopping',
|
|
|
- hidden: true
|
|
|
- // permission: 'M_tenants_list'
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/shop/goods',
|
|
|
+ redirect: '/shop/goods/list',
|
|
|
+ name: 'goodsList',
|
|
|
+ component: RouteView,
|
|
|
+ meta: {
|
|
|
+ title: '商品管理',
|
|
|
+ icon: 'shopping'
|
|
|
+ // permission: 'M_tenants_list'
|
|
|
+ },
|
|
|
+ hideChildrenInMenu: true,
|
|
|
+ children: [{
|
|
|
+ path: '/shop/goods/list',
|
|
|
+ name: 'goodsListList',
|
|
|
+ component: () => import(/* webpackChunkName: "tenants" */ '@/views/shop/goodsList.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '商品列表',
|
|
|
+ icon: 'shopping',
|
|
|
+ hidden: true
|
|
|
+ // permission: 'M_tenants_list'
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
- path: '/shop/goodsShelves',
|
|
|
- name: 'goodsShelves',
|
|
|
- component: () => import(/* webpackChunkName: "tenants" */ '@/views/shop/goodsShelves.vue'),
|
|
|
+ path: '/shop/goods/add',
|
|
|
+ name: 'goodsListAdd',
|
|
|
+ component: () => import(/* webpackChunkName: "tenants" */ '@/views/shop/goodsEdit.vue'),
|
|
|
meta: {
|
|
|
- title: '商品上架',
|
|
|
- icon: 'flag'
|
|
|
+ title: '新增商品',
|
|
|
+ icon: 'shopping',
|
|
|
+ hidden: true
|
|
|
// permission: 'M_tenants_list'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- path: '/shop/bannerSetting',
|
|
|
- name: 'bannerSetting',
|
|
|
- component: () => import(/* webpackChunkName: "appSetting" */ '@/views/shop/bannerSetting.vue'),
|
|
|
+ path: '/shop/goods/edit/:id',
|
|
|
+ name: 'goodsListEdit',
|
|
|
+ component: () => import(/* webpackChunkName: "tenants" */ '@/views/shop/goodsEdit.vue'),
|
|
|
meta: {
|
|
|
- title: '推广位设置',
|
|
|
- icon: 'file-image'
|
|
|
- // permission: 'M_banner'
|
|
|
+ title: '编辑商品',
|
|
|
+ icon: 'shopping',
|
|
|
+ hidden: true
|
|
|
+ // permission: 'M_tenants_list'
|
|
|
}
|
|
|
}
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/shop/goodsShelves',
|
|
|
+ name: 'goodsShelves',
|
|
|
+ component: () => import(/* webpackChunkName: "tenants" */ '@/views/shop/goodsShelves.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '商品排序',
|
|
|
+ icon: 'flag'
|
|
|
+ // permission: 'M_tenants_list'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/shop/bannerSetting',
|
|
|
+ name: 'bannerSetting',
|
|
|
+ component: () => import(/* webpackChunkName: "appSetting" */ '@/views/shop/bannerSetting.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '推广位设置',
|
|
|
+ icon: 'file-image'
|
|
|
+ // permission: 'M_banner'
|
|
|
+ }
|
|
|
+ }
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -170,62 +166,60 @@ export const asyncRouterMap = [{
|
|
|
icon: 'shop'
|
|
|
// permission: 'M_tenants_list'
|
|
|
},
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: '/equipmentManage/network',
|
|
|
- name: 'network',
|
|
|
- component: () => import(/* webpackChunkName: "tenants" */ '@/views/equipmentManage/network/network.vue'),
|
|
|
- meta: {
|
|
|
- title: '网点管理',
|
|
|
- icon: 'profile'
|
|
|
- // permission: 'M_tenants_list'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/equipmentManage/equipment',
|
|
|
- name: 'equipment',
|
|
|
- component: () => import(/* webpackChunkName: "tenants" */ '@/views/equipmentManage/equipment/equipment.vue'),
|
|
|
- meta: {
|
|
|
- title: '设备管理',
|
|
|
- icon: 'profile'
|
|
|
- // permission: 'M_tenants_list'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/equipmentManage/openTimeSetting',
|
|
|
- name: 'openTimeSetting',
|
|
|
- component: () => import(/* webpackChunkName: "tenants" */ '@/views/equipmentManage/openTimeSetting/OpenTimeSetting.vue'),
|
|
|
- meta: {
|
|
|
- title: '投放时间设置',
|
|
|
- icon: 'profile'
|
|
|
- // permission: 'M_tenants_list'
|
|
|
- }
|
|
|
+ children: [{
|
|
|
+ path: '/equipmentManage/network',
|
|
|
+ name: 'network',
|
|
|
+ component: () => import(/* webpackChunkName: "tenants" */ '@/views/equipmentManage/network/network.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '网点管理',
|
|
|
+ icon: 'profile'
|
|
|
+ // permission: 'M_tenants_list'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/equipmentManage/equipment',
|
|
|
+ name: 'equipment',
|
|
|
+ component: () => import(/* webpackChunkName: "tenants" */ '@/views/equipmentManage/equipment/equipment.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '设备管理',
|
|
|
+ icon: 'profile'
|
|
|
+ // permission: 'M_tenants_list'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/equipmentManage/openTimeSetting',
|
|
|
+ name: 'openTimeSetting',
|
|
|
+ component: () => import(/* webpackChunkName: "tenants" */
|
|
|
+ '@/views/equipmentManage/openTimeSetting/OpenTimeSetting.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '投放时间设置',
|
|
|
+ icon: 'profile'
|
|
|
+ // permission: 'M_tenants_list'
|
|
|
}
|
|
|
+ }
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/releaseRecord',
|
|
|
- name: 'releaseRecord',
|
|
|
- component: PageView,
|
|
|
- hideChildrenInMenu: true,
|
|
|
- redirect: '/releaseRecord/list',
|
|
|
- meta: {
|
|
|
- title: '投放记录',
|
|
|
- icon: 'shop'
|
|
|
- // permission: 'M_tenants_list'
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: '/releaseRecord/list',
|
|
|
- name: 'releaseRecordList',
|
|
|
- component: () => import(/* webpackChunkName: "tenants" */ '@/views/releaseRecord/releaseRecordList.vue'),
|
|
|
- meta: {
|
|
|
- title: '投放记录',
|
|
|
- icon: 'profile'
|
|
|
- // permission: 'M_tenants_list'
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
+ path: '/releaseRecord',
|
|
|
+ name: 'releaseRecord',
|
|
|
+ component: PageView,
|
|
|
+ hideChildrenInMenu: true,
|
|
|
+ redirect: '/releaseRecord/list',
|
|
|
+ meta: {
|
|
|
+ title: '投放记录',
|
|
|
+ icon: 'shop'
|
|
|
+ // permission: 'M_tenants_list'
|
|
|
+ },
|
|
|
+ children: [{
|
|
|
+ path: '/releaseRecord/list',
|
|
|
+ name: 'releaseRecordList',
|
|
|
+ component: () => import(/* webpackChunkName: "tenants" */ '@/views/releaseRecord/releaseRecordList.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '投放记录',
|
|
|
+ icon: 'profile'
|
|
|
+ // permission: 'M_tenants_list'
|
|
|
+ }
|
|
|
+ }]
|
|
|
},
|
|
|
{
|
|
|
path: '/shopSetting',
|
|
@@ -236,27 +230,26 @@ export const asyncRouterMap = [{
|
|
|
icon: 'appstore'
|
|
|
// permission: 'M_appSetting'
|
|
|
},
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: '/shopSetting/goodsClass',
|
|
|
- name: 'goodsClass',
|
|
|
- component: () => import(/* webpackChunkName: "tenants" */ '@/views/shopSetting/goodsClass.vue'),
|
|
|
- meta: {
|
|
|
- title: '商品分类管理',
|
|
|
- icon: 'folder'
|
|
|
- // permission: 'M_tenants_list'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/shopSetting/supplier',
|
|
|
- name: 'supplier',
|
|
|
- component: () => import(/* webpackChunkName: "tenants" */ '@/views/shopSetting/supplier.vue'),
|
|
|
- meta: {
|
|
|
- title: '供货商管理',
|
|
|
- icon: 'solution'
|
|
|
- // permission: 'M_tenants_list'
|
|
|
- }
|
|
|
+ children: [{
|
|
|
+ path: '/shopSetting/goodsClass',
|
|
|
+ name: 'goodsClass',
|
|
|
+ component: () => import(/* webpackChunkName: "tenants" */ '@/views/shopSetting/goodsClass.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '商品分类管理',
|
|
|
+ icon: 'folder'
|
|
|
+ // permission: 'M_tenants_list'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/shopSetting/supplier',
|
|
|
+ name: 'supplier',
|
|
|
+ component: () => import(/* webpackChunkName: "tenants" */ '@/views/shopSetting/supplier.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '供货商管理',
|
|
|
+ icon: 'solution'
|
|
|
+ // permission: 'M_tenants_list'
|
|
|
}
|
|
|
+ }
|
|
|
]
|
|
|
},
|
|
|
// auth
|
|
@@ -269,37 +262,36 @@ export const asyncRouterMap = [{
|
|
|
icon: 'lock'
|
|
|
// permission: 'M_auth_0'
|
|
|
},
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: '/menusAuth/menu',
|
|
|
- name: 'powerMenu',
|
|
|
- component: () => import(/* webpackChunkName: "auth" */ '@/views/power/menu/menu.vue'),
|
|
|
- meta: {
|
|
|
- title: '菜单管理',
|
|
|
- icon: 'profile'
|
|
|
+ children: [{
|
|
|
+ path: '/menusAuth/menu',
|
|
|
+ name: 'powerMenu',
|
|
|
+ component: () => import(/* webpackChunkName: "auth" */ '@/views/power/menu/menu.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '菜单管理',
|
|
|
+ icon: 'profile'
|
|
|
// permission: 'M_menusAuth_menu'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/auth/userList',
|
|
|
- name: 'powerUserList',
|
|
|
- component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
|
|
|
- meta: {
|
|
|
- title: '用户管理',
|
|
|
- icon: 'user'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/auth/userList',
|
|
|
+ name: 'powerUserList',
|
|
|
+ component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '用户管理',
|
|
|
+ icon: 'user'
|
|
|
// permission: 'M_auth_userList'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/auth/roleList',
|
|
|
- name: 'powerRoleList',
|
|
|
- component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
|
|
|
- meta: {
|
|
|
- title: '角色管理',
|
|
|
- icon: 'solution'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/auth/roleList',
|
|
|
+ name: 'powerRoleList',
|
|
|
+ component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '角色管理',
|
|
|
+ icon: 'solution'
|
|
|
// permission: 'M_auth_roleList'
|
|
|
- }
|
|
|
}
|
|
|
+ }
|
|
|
]
|
|
|
},
|
|
|
{
|