完善问题
This commit is contained in:
@@ -19,8 +19,6 @@ export const constantRoutes = [
|
|||||||
path: '/login',
|
path: '/login',
|
||||||
component: () => import('@/views/login/login.vue')
|
component: () => import('@/views/login/login.vue')
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// path: '/',
|
// path: '/',
|
||||||
// redirect: 'index'
|
// redirect: 'index'
|
||||||
@@ -29,10 +27,7 @@ export const constantRoutes = [
|
|||||||
// path: '/index',
|
// path: '/index',
|
||||||
// component: () => import('@/views/index.vue'),
|
// component: () => import('@/views/index.vue'),
|
||||||
// name: 'index'
|
// name: 'index'
|
||||||
|
|
||||||
// },
|
// },
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
path: '/index',
|
path: '/index',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
@@ -50,21 +45,23 @@ export const constantRoutes = [
|
|||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/customerInformation',
|
path: '/customerManagement',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/customerInformation',
|
redirect: '/customerManagement',
|
||||||
meta: {
|
meta: {
|
||||||
title: '客户信息管理'
|
title: '客户管理'
|
||||||
},
|
},
|
||||||
children: [{
|
children: [
|
||||||
path: '/customerInformation/customerInformation',
|
{
|
||||||
component: () => import('@/views/customerManagement/customerInformation/customerInformation'),
|
path: '/customerInformation/customerInformation',
|
||||||
name: 'CustomerInformation',
|
component: () => import('@/views/customerManagement/customerInformation/customerInformation'),
|
||||||
meta: {
|
name: 'CustomerInformation',
|
||||||
title: '客户信息管理',
|
meta: {
|
||||||
noCache: true
|
title: '客户信息管理',
|
||||||
|
noCache: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/salesOrder',
|
path: '/salesOrder',
|
||||||
@@ -115,247 +112,9 @@ export const constantRoutes = [
|
|||||||
title: '采购订单',
|
title: '采购订单',
|
||||||
noCache: true
|
noCache: true
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// {
|
|
||||||
// path: '/baseInfo',
|
|
||||||
// component: Layout,
|
|
||||||
// redirect: null,
|
|
||||||
// meta: {
|
|
||||||
// title: '基础信息'
|
|
||||||
// },
|
|
||||||
// children: [{
|
|
||||||
// path: '/warehouses/warehouse',
|
|
||||||
// name: 'Warehouse',
|
|
||||||
// component: () => import('@/views/baseInfo/warehouses/warehouse/index'),
|
|
||||||
// meta: {
|
|
||||||
// title: '仓库管理',
|
|
||||||
// icon: 'product-add'
|
|
||||||
// },
|
|
||||||
// hidden: true
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/warehouses/warehouseArea',
|
|
||||||
// name: 'WarehouseArea',
|
|
||||||
// component: () => import('@/views/baseInfo/warehouses/warehouseArea/index'),
|
|
||||||
// meta: {
|
|
||||||
// title: '库区管理',
|
|
||||||
// icon: 'product-add'
|
|
||||||
// },
|
|
||||||
// hidden: true
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/warehouses/warehouseAreaType',
|
|
||||||
// name: 'WarehouseAreaType',
|
|
||||||
// component: () => import('@/views/baseInfo/warehouses/warehouseAreaType/index'),
|
|
||||||
// meta: {
|
|
||||||
// title: '库区类型管理',
|
|
||||||
// icon: 'product-add'
|
|
||||||
// },
|
|
||||||
// hidden: true
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/warehouses/goodsShelves',
|
|
||||||
// name: 'GoodsShelves',
|
|
||||||
// component: () => import('@/views/baseInfo/warehouses/goodsShelves/index'),
|
|
||||||
// meta: {
|
|
||||||
// title: '库位管理',
|
|
||||||
// icon: 'product-add'
|
|
||||||
// },
|
|
||||||
// hidden: true
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/supplier/supplier',
|
|
||||||
// name: 'Supplier',
|
|
||||||
// component: () => import('@/views/baseInfo/supplier/supplier/supplier'),
|
|
||||||
// meta: {
|
|
||||||
// title: '供应商管理',
|
|
||||||
// icon: 'product-add'
|
|
||||||
// },
|
|
||||||
// hidden: true
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/supplier/suppliertype',
|
|
||||||
// name: 'Suppliertype',
|
|
||||||
// component: () => import('@/views/baseInfo/supplier/suppliertype/suppliertype'),
|
|
||||||
// meta: {
|
|
||||||
// title: '供应商类型管理',
|
|
||||||
// icon: 'product-add'
|
|
||||||
// },
|
|
||||||
// hidden: true
|
|
||||||
// },
|
|
||||||
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/goods',
|
|
||||||
// component: Layout,
|
|
||||||
// redirect: null,
|
|
||||||
// meta: {
|
|
||||||
// title: '商品管理'
|
|
||||||
// },
|
|
||||||
// children: [{
|
|
||||||
// path: '/brands/index',
|
|
||||||
// name: 'Brands',
|
|
||||||
// component: () => import('@/views/goods/brands/index'),
|
|
||||||
// meta: {
|
|
||||||
// title: '品牌管理',
|
|
||||||
// icon: 'product-add'
|
|
||||||
// },
|
|
||||||
// hidden: true
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/category/index',
|
|
||||||
// name: 'Category',
|
|
||||||
// component: () => import('@/views/goods/category/index'),
|
|
||||||
// meta: {
|
|
||||||
// title: '商品类别',
|
|
||||||
// icon: 'product-add'
|
|
||||||
// },
|
|
||||||
// hidden: true
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/factory/index',
|
|
||||||
// name: 'Factory',
|
|
||||||
// component: () => import('@/views/goods/factory/index'),
|
|
||||||
// meta: {
|
|
||||||
// title: '厂家管理',
|
|
||||||
// icon: 'product-add'
|
|
||||||
// },
|
|
||||||
// hidden: true
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/unit/index',
|
|
||||||
// name: 'Unit',
|
|
||||||
// component: () => import('@/views/goods/unit/index'),
|
|
||||||
// meta: {
|
|
||||||
// title: '计量单位',
|
|
||||||
// icon: 'product-add'
|
|
||||||
// },
|
|
||||||
// hidden: true
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/goods/index',
|
|
||||||
// name: 'Goods',
|
|
||||||
// component: () => import('@/views/goods/goods/index'),
|
|
||||||
// meta: {
|
|
||||||
// title: '商品管理',
|
|
||||||
// icon: 'product-add'
|
|
||||||
// },
|
|
||||||
// hidden: true
|
|
||||||
// },
|
|
||||||
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/inStorage',
|
|
||||||
// component: Layout,
|
|
||||||
// redirect: '/inStorage',
|
|
||||||
// meta: {
|
|
||||||
// title: '入库管理'
|
|
||||||
// },
|
|
||||||
// children: [{
|
|
||||||
// path: '/deliveryNotice/index',
|
|
||||||
// component: () => import('@/views/inStorage/deliveryNotice/index'),
|
|
||||||
// name: 'DeliveryNotice',
|
|
||||||
// meta: {
|
|
||||||
// title: '到货通知单',
|
|
||||||
// noCache: true
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/receivingGoods/index',
|
|
||||||
// component: () => import('@/views/inStorage/receivingGoods/index'),
|
|
||||||
// name: 'ReceivingGoods',
|
|
||||||
// meta: {
|
|
||||||
// title: '收货单管理',
|
|
||||||
// noCache: true
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/upShelf/index',
|
|
||||||
// component: () => import('@/views/inStorage/upShelf/index'),
|
|
||||||
// name: 'UpShelf',
|
|
||||||
// meta: {
|
|
||||||
// title: '上架单管理',
|
|
||||||
// noCache: true
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
|
|
||||||
// {
|
|
||||||
// path: '/outStorage',
|
|
||||||
// component: Layout,
|
|
||||||
// redirect: '/outStorage',
|
|
||||||
// meta: {
|
|
||||||
// title: '出库管理'
|
|
||||||
// },
|
|
||||||
// children: [{
|
|
||||||
// path: '/outStorage/index',
|
|
||||||
// component: () => import('@/views/outStorage/index'),
|
|
||||||
// name: 'OutStorage',
|
|
||||||
// meta: {
|
|
||||||
// title: '出库单管理',
|
|
||||||
// noCache: true
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
|
|
||||||
// {
|
|
||||||
// path: '/storage',
|
|
||||||
// component: Layout,
|
|
||||||
// redirect: '/storage',
|
|
||||||
// meta: {
|
|
||||||
// title: '库存管理'
|
|
||||||
// },
|
|
||||||
// children: [{
|
|
||||||
// path: '/inventory/inventory',
|
|
||||||
// component: () => import('@/views/storage/inventory/inventory.vue'),
|
|
||||||
// name: 'Inventory',
|
|
||||||
// meta: {
|
|
||||||
// title: '库存查询',
|
|
||||||
// noCache: true
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: '/stocktaking/index',
|
|
||||||
// component: () => import('@/views/storage/stocktaking/index'),
|
|
||||||
// name: 'Stocktaking',
|
|
||||||
// meta: {
|
|
||||||
// title: '盘点管理',
|
|
||||||
// noCache: true
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
|
|
||||||
// {
|
|
||||||
// path: '/reports',
|
|
||||||
// component: Layout,
|
|
||||||
// redirect: '/reports',
|
|
||||||
// meta: {
|
|
||||||
// title: '报表管理'
|
|
||||||
// },
|
|
||||||
// children: [ {
|
|
||||||
// path: '/inOutStorage/index',
|
|
||||||
// component: () => import('@/views/reports/inOutStorage/index.vue'),
|
|
||||||
// name: 'InventoryRefer',
|
|
||||||
// meta: { title: '出入库查询', noCache: true }
|
|
||||||
// },
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
path: '/system',
|
path: '/system',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
@@ -427,8 +186,7 @@ export const constantRoutes = [
|
|||||||
icon: 'el-icon-menu',
|
icon: 'el-icon-menu',
|
||||||
title: '日志管理'
|
title: '日志管理'
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -390,9 +390,13 @@
|
|||||||
console.log("checkchange", data);
|
console.log("checkchange", data);
|
||||||
console.log("checkchange", checked);
|
console.log("checkchange", checked);
|
||||||
if (checked) {
|
if (checked) {
|
||||||
this.form.psid = data.sid
|
if (data.sid === 'd936f1ba-03c3-11ec-bf08-48452053aa44') {
|
||||||
this.form.pname = data.name
|
this.form.psid = '0'
|
||||||
|
this.form.pname = '顶级菜单'
|
||||||
|
} else {
|
||||||
|
this.form.psid = data.sid
|
||||||
|
this.form.pname = data.name
|
||||||
|
}
|
||||||
let arr = []
|
let arr = []
|
||||||
arr = [data.sid];
|
arr = [data.sid];
|
||||||
this.$refs.Tree.setCheckedKeys(arr);
|
this.$refs.Tree.setCheckedKeys(arr);
|
||||||
|
|||||||
Reference in New Issue
Block a user