|
@@ -29,48 +29,51 @@ export const asyncRouterMap = [
|
|
|
{
|
|
|
path: '/home',
|
|
|
name: 'home',
|
|
|
- component: () => import(/* webpackChunkName: "home" */ '@/views/Home'),
|
|
|
+ redirect: '/home',
|
|
|
+ name: 'home',
|
|
|
+ component: BlankLayout,
|
|
|
meta: {
|
|
|
title: '首页',
|
|
|
icon: 'home',
|
|
|
- hide: true
|
|
|
- }
|
|
|
+ hidden: true
|
|
|
+ },
|
|
|
+ hideChildrenInMenu: true,
|
|
|
+ children:[
|
|
|
+ {
|
|
|
+ path: '/home',
|
|
|
+ name: 'home',
|
|
|
+ component: () => import(/* webpackChunkName: "home" */ '@/views/Home'),
|
|
|
+ meta: {
|
|
|
+ title: '首页',
|
|
|
+ icon: 'home',
|
|
|
+ hidden: true
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/changePwd',
|
|
|
+ name: 'changePwd',
|
|
|
+ component: () => import(/* webpackChunkName: "home" */ '@/views/user/ChangePwd'),
|
|
|
+ meta: {
|
|
|
+ title: '修改密码',
|
|
|
+ icon: 'home'
|
|
|
+ },
|
|
|
+ hidden: true
|
|
|
+ },
|
|
|
+ // 公告
|
|
|
+ {
|
|
|
+ path: '/notice',
|
|
|
+ name: 'notice',
|
|
|
+ component: () => import(/* webpackChunkName: "home" */ '@/views/notice/list'),
|
|
|
+ meta: {
|
|
|
+ title: '公告',
|
|
|
+ icon: 'bell',
|
|
|
+ hidden: true
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- {
|
|
|
- path: '/changePwd',
|
|
|
- name: 'changePwd',
|
|
|
- component: () => import(/* webpackChunkName: "home" */ '@/views/user/ChangePwd'),
|
|
|
- meta: {
|
|
|
- title: '修改密码',
|
|
|
- icon: 'home'
|
|
|
- },
|
|
|
- hidden: true
|
|
|
- },
|
|
|
- // 新品列表-下线产品
|
|
|
- {
|
|
|
- path: '/newProduct/list/:onlineFalg',
|
|
|
- name: 'newProductList',
|
|
|
- component: () => import(/* webpackChunkName: "home" */ '@/views/productManagement/newProduct/list'),
|
|
|
- meta: {
|
|
|
- title: '新品信息',
|
|
|
- icon: 'home'
|
|
|
- },
|
|
|
- hidden: true
|
|
|
- },
|
|
|
- // 产品详情
|
|
|
- {
|
|
|
- path: '/viewProduct/:sn',
|
|
|
- name: 'viewProduct',
|
|
|
- component: () => import(/* webpackChunkName: "home" */ '@/views/productManagement/newProduct/detail'),
|
|
|
- meta: {
|
|
|
- title: '产品详情',
|
|
|
- icon: 'home',
|
|
|
- replaceTab: true
|
|
|
- },
|
|
|
- hidden: true
|
|
|
- },
|
|
|
// 数字货架
|
|
|
{
|
|
|
path: '/numsGoodsShelves',
|
|
@@ -524,6 +527,7 @@ export const asyncRouterMap = [
|
|
|
title: '采购单详情',
|
|
|
icon: 'money-collect',
|
|
|
hidden: true,
|
|
|
+ replaceTab: true,
|
|
|
permission: 'B_purchaseDetail'
|
|
|
}
|
|
|
},
|
|
@@ -1276,23 +1280,51 @@ export const asyncRouterMap = [
|
|
|
},
|
|
|
{
|
|
|
path: '/inventoryManagement/inventoryWarning',
|
|
|
- name: 'inventoryWarningList',
|
|
|
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
|
|
|
+ name: 'inventoryWarning',
|
|
|
+ redirect: '/inventoryManagement/inventoryWarning/list',
|
|
|
+ component: BlankLayout,
|
|
|
meta: {
|
|
|
title: '库存预警',
|
|
|
icon: 'alert',
|
|
|
permission: 'M_inventoryWarningList'
|
|
|
- }
|
|
|
+ },
|
|
|
+ hideChildrenInMenu: true,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'list',
|
|
|
+ name: 'inventoryWarningList',
|
|
|
+ component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '库存预警',
|
|
|
+ icon: 'alert',
|
|
|
+ permission: 'M_inventoryWarningList'
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
path: '/inventoryManagement/satelliteWarehouseInventory',
|
|
|
- name: 'satelliteWarehouseInventoryList',
|
|
|
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/satelliteWarehouseInventory/list.vue'),
|
|
|
+ name: 'satelliteWarehouseInventory',
|
|
|
+ redirect: '/inventoryManagement/satelliteWarehouseInventory/list',
|
|
|
+ component: BlankLayout,
|
|
|
meta: {
|
|
|
title: '卫星仓库存',
|
|
|
icon: 'flag',
|
|
|
permission: 'M_satelliteWarehouseInventoryList'
|
|
|
- }
|
|
|
+ },
|
|
|
+ hideChildrenInMenu: true,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'list',
|
|
|
+ name: 'satelliteWarehouseInventoryList',
|
|
|
+ component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/satelliteWarehouseInventory/list.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '卫星仓库存',
|
|
|
+ icon: 'flag',
|
|
|
+ permission: 'M_satelliteWarehouseInventoryList'
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
path: '/inventoryManagement/inventoryChecking',
|
|
@@ -2088,7 +2120,7 @@ export const asyncRouterMap = [
|
|
|
hidden: true,
|
|
|
permission: 'B_product_dealerProduct_edit'
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -2138,7 +2170,44 @@ export const asyncRouterMap = [
|
|
|
hidden: true,
|
|
|
permission: 'M_productOnlineInfoList'
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/productManagement/newProductList',
|
|
|
+ redirect: '/newProduct/list/:onlineFalg',
|
|
|
+ name: 'newProductList',
|
|
|
+ component: BlankLayout,
|
|
|
+ meta: {
|
|
|
+ title: '产品信息',
|
|
|
+ icon: 'sketch',
|
|
|
+ permission: 'M_newProductList'
|
|
|
+ },
|
|
|
+ hideChildrenInMenu: true,
|
|
|
+ children: [
|
|
|
+ // 新品列表-下线产品
|
|
|
+ {
|
|
|
+ path: '/newProduct/list/:onlineFalg',
|
|
|
+ name: 'newProductList',
|
|
|
+ component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/newProduct/list'),
|
|
|
+ meta: {
|
|
|
+ title: '新品信息',
|
|
|
+ icon: 'file-text',
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ // 产品详情
|
|
|
+ {
|
|
|
+ path: '/viewProduct/:sn',
|
|
|
+ name: 'viewProduct',
|
|
|
+ component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/newProduct/detail'),
|
|
|
+ meta: {
|
|
|
+ title: '产品详情',
|
|
|
+ icon: 'file-text',
|
|
|
+ replaceTab: true,
|
|
|
+ hidden: true
|
|
|
+ },
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -2470,82 +2539,54 @@ export const asyncRouterMap = [
|
|
|
children: [
|
|
|
{
|
|
|
path: '/auth/userList',
|
|
|
- name: 'powerUserList',
|
|
|
- component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
|
|
|
+ name: 'powerUser',
|
|
|
+ redirect: '/auth/userList/list',
|
|
|
+ component: BlankLayout,
|
|
|
meta: {
|
|
|
title: '用户管理',
|
|
|
icon: 'user',
|
|
|
permission: 'M_powerMD_user_list'
|
|
|
- }
|
|
|
+ },
|
|
|
+ hideChildrenInMenu: true,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'list',
|
|
|
+ name: 'powerUserList',
|
|
|
+ component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '用户管理',
|
|
|
+ icon: 'user',
|
|
|
+ permission: 'M_powerMD_user_list'
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
path: '/auth/roleList',
|
|
|
- name: 'powerRoleList',
|
|
|
- component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
|
|
|
+ name: 'powerRole',
|
|
|
+ redirect: '/auth/roleList/list',
|
|
|
+ component: BlankLayout,
|
|
|
meta: {
|
|
|
title: '角色管理',
|
|
|
icon: 'solution',
|
|
|
permission: 'M_powerMD_role_list'
|
|
|
- }
|
|
|
+ },
|
|
|
+ hideChildrenInMenu: true,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'list',
|
|
|
+ name: 'powerRoleList',
|
|
|
+ component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '角色管理',
|
|
|
+ icon: 'solution',
|
|
|
+ permission: 'M_powerMD_role_list'
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- // 系统设置
|
|
|
- // {
|
|
|
- // path: '/setting',
|
|
|
- // redirect: '/setting/userList',
|
|
|
- // component: PageView,
|
|
|
- // meta: {
|
|
|
- // title: '系统设置',
|
|
|
- // icon: 'setting'
|
|
|
- // // permission: 'M_setting_0'
|
|
|
- // },
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: '/setting/dataDictionary',
|
|
|
- // name: 'powerDD',
|
|
|
- // component: () => import(/* webpackChunkName: "setting" */
|
|
|
- // '@/views/power/dataDictionary/dataDictionary.vue'),
|
|
|
- // meta: {
|
|
|
- // title: '数据字典管理',
|
|
|
- // icon: 'database'
|
|
|
- // // permission: 'M_sys_dataDictionary'
|
|
|
- // }
|
|
|
- // },
|
|
|
- // // {
|
|
|
- // // path: '/setting/register',
|
|
|
- // // name: 'powerRegister',
|
|
|
- // // component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
|
|
|
- // // meta: {
|
|
|
- // // title: '参数管理',
|
|
|
- // // icon: 'key',
|
|
|
- // // permission: 'M_sys_register'
|
|
|
- // // }
|
|
|
- // // },
|
|
|
- // {
|
|
|
- // path: '/setting/OperateJournal',
|
|
|
- // name: 'powerOperateJournal',
|
|
|
- // component: () => import(/* webpackChunkName: "setting" */
|
|
|
- // '@/views/power/OperateJournal/OperateJournal.vue'),
|
|
|
- // meta: {
|
|
|
- // title: '操作日志',
|
|
|
- // icon: 'read'
|
|
|
- // // permission: 'M_operateJournal'
|
|
|
- // }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // }
|
|
|
- // 公告
|
|
|
- {
|
|
|
- path: '/notice',
|
|
|
- name: 'notice',
|
|
|
- component: () => import(/* webpackChunkName: "home" */ '@/views/notice/list'),
|
|
|
- meta: {
|
|
|
- title: '公告',
|
|
|
- icon: 'bell'
|
|
|
- },
|
|
|
- hidden: true
|
|
|
- }
|
|
|
]
|
|
|
},
|
|
|
{
|