Browse Source

前端加上权限

branch_ccpg_220107
44673626 3 years ago
parent
commit
034a155436
  1. 28
      vue/src/router/modules/hq_menu.js
  2. 14
      vue/src/router/modules/hq_out_order.js
  3. 20
      vue/src/router/modules/vw_menu.js
  4. 8
      vue/src/router/modules/vw_out_order.js

28
vue/src/router/modules/hq_menu.js

@ -20,7 +20,7 @@ const hqMenudataRouter = {
redirect: 'ux/vw/dataInput/index',
meta: {
title: 'H平台',
// roles: ['SettleAccount.HQKBs', 'SettleAccount.HQSpecKBs'],
roles: ['SettleAccount.HQ_HPlatform', 'SettleAccount.Reports'],
icon: '看板'
},
children: [
@ -30,7 +30,7 @@ const hqMenudataRouter = {
name: 'ERPEI',//命名路由
meta: {
title: '红旗H平台导入',
roles: ['SettleAccount.Boms'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.HQ_HPlatform'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -50,7 +50,7 @@ const hqMenudataRouter = {
name: 'HQH',
meta: {
title: 'H平台备件明细',
//roles: ['SettleAccount.FISs'],
roles: ['SettleAccount.Reports'],
icon: '文件'
}
}
@ -65,7 +65,7 @@ const hqMenudataRouter = {
redirect: 'ux/vw/dataInput/index',
meta: {
title: 'M平台',
//roles: ['SettleAccount.HQConsigns', 'SettleAccount.HQSpecConsigns'],
roles: ['SettleAccount.HQ_MPlatform', 'SettleAccount.Reports'],
icon: '看板'
},
children: [
@ -75,7 +75,7 @@ const hqMenudataRouter = {
name: 'ERPEI',//命名路由
meta: {
title: '红旗M平台导入',
//roles: ['SettleAccount.Boms'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.HQ_MPlatform'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -85,7 +85,7 @@ const hqMenudataRouter = {
name: 'HQM',
meta: {
title: 'M平台核对明细',
//roles: ['SettleAccount.FISs'],
roles: ['SettleAccount.Reports'],
icon: '文件'
}
},
@ -95,7 +95,7 @@ const hqMenudataRouter = {
name: 'HQM',
meta: {
title: 'M平台备件明细',
//roles: ['SettleAccount.FISs'],
roles: ['SettleAccount.Reports'],
icon: '文件'
}
},
@ -118,7 +118,7 @@ const hqMenudataRouter = {
redirect: 'ux/vw/dataInput/index',
meta: {
title: 'F平台',
//roles: ['SettleAccount.HQConsigns', 'SettleAccount.HQSpecConsigns'],
roles: ['SettleAccount.HQ_FPlatform', 'SettleAccount.Reports'],
icon: '看板'
},
children: [
@ -128,7 +128,7 @@ const hqMenudataRouter = {
name: 'ERPEI',//命名路由
meta: {
title: '红旗F平台导入',
//roles: ['SettleAccount.Boms'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.HQ_FPlatform'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -139,7 +139,7 @@ const hqMenudataRouter = {
name: 'HQF',
meta: {
title: 'F平台核对明细',
//roles: ['SettleAccount.FISs'],
roles: ['SettleAccount.Reports'],
icon: '文件'
}
},
@ -149,7 +149,7 @@ const hqMenudataRouter = {
name: 'HQF',
meta: {
title: 'F平台备件明细',
//roles: ['SettleAccount.FISs'],
roles: ['SettleAccount.Reports'],
icon: '文件'
}
},
@ -174,7 +174,7 @@ const hqMenudataRouter = {
redirect: 'ux/vw/dataInput/index',
meta: {
title: '一汽轿车平台',
// roles: ['SettleAccount.HQKBs', 'SettleAccount.HQSpecKBs'],
roles: ['SettleAccount.BT_Carlatform', 'SettleAccount.Reports'],
icon: '看板'
},
children: [
@ -184,7 +184,7 @@ const hqMenudataRouter = {
name: 'ERPEI',//命名路由
meta: {
title: '一汽轿车平台导入',
roles: ['SettleAccount.Boms'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.BT_Carlatform'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -194,7 +194,7 @@ const hqMenudataRouter = {
name: 'HQY',//命名路由
meta: {
title: '一汽轿车平台核对明细',
roles: ['SettleAccount.Boms'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色)
icon: '文件'
}
},

14
vue/src/router/modules/hq_out_order.js

@ -22,7 +22,7 @@ const hqOutOrderDataRouter = {
name: 'SettleAccount',//命名路由
meta: {
title: '红旗H平台出库单',
roles: ['SettleAccount.SettleAccounts'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.WMSHQ'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -32,7 +32,7 @@ const hqOutOrderDataRouter = {
name: 'SettleAccount',//命名路由
meta: {
title: '红旗H平台备件出库单',
roles: ['SettleAccount.SettleAccounts'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.WMSHQ'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -42,7 +42,7 @@ const hqOutOrderDataRouter = {
name: 'SettleAccount',//命名路由
meta: {
title: '红旗M平台出库单',
roles: ['SettleAccount.SettleAccounts'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.WMSHQ'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -52,7 +52,7 @@ const hqOutOrderDataRouter = {
name: 'SettleAccount',//命名路由
meta: {
title: '红旗M平台备件出库单',
roles: ['SettleAccount.SettleAccounts'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.WMSHQ'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -62,7 +62,7 @@ const hqOutOrderDataRouter = {
name: 'SettleAccount',//命名路由
meta: {
title: '红旗F平台出库单',
roles: ['SettleAccount.SettleAccounts'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.WMSHQ'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -72,7 +72,7 @@ const hqOutOrderDataRouter = {
name: 'SettleAccount',//命名路由
meta: {
title: '红旗F平台备件出库单',
roles: ['SettleAccount.SettleAccounts'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.WMSHQ'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -82,7 +82,7 @@ const hqOutOrderDataRouter = {
name: 'SettleAccount',//命名路由
meta: {
title: '一汽轿车平台出库单',
roles: ['SettleAccount.SettleAccounts'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.WMSHQ'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},

20
vue/src/router/modules/vw_menu.js

@ -20,7 +20,7 @@ const vwMenudataRouter = {
redirect: 'ux/basedata/Invoice/index',
meta: {
title: '数据导入',
// roles: ['SettleAccount.HQKBs', 'SettleAccount.HQSpecKBs'],
roles: ['SettleAccount.Invoices', 'SettleAccount.SettleAccounts', 'SettleAccount.UnSettleAccount', 'SettleAccount.VWKanBan', 'SettleAccount.SparePart', 'SettleAccount.ScrapClaims'],
icon: '看板'
},
children: [
@ -50,7 +50,7 @@ const vwMenudataRouter = {
name: 'SettleAccount',
meta: {
title: 'FIS未结明细',
roles: ['SettleAccount.SettleAccounts'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.UnSettleAccount'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -60,7 +60,7 @@ const vwMenudataRouter = {
name: 'VWKanBan',//命名路由
meta: {
title: '大众看板结算导入',
roles: ['SettleAccount.SettleAccounts'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.VWKanBan'],//控制页面角色(可以设置多个角色)
icon: '看板'
}
},
@ -70,7 +70,7 @@ const vwMenudataRouter = {
name: 'SparePart',//命名路由
meta: {
title: '大众备件结算导入',
roles: ['SettleAccount.Boms'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.SparePart'],//控制页面角色(可以设置多个角色)
icon: '工厂'
}
},
@ -80,7 +80,7 @@ const vwMenudataRouter = {
name: 'ScrapClaims',
meta: {
title: 'CP7报废和索赔导入',
roles: ['SettleAccount.FISs'],
roles: ['SettleAccount.ScrapClaims'],
icon: '文件'
}
},
@ -93,7 +93,7 @@ const vwMenudataRouter = {
redirect: 'export-data',
meta: {
title: '数据输出',
//roles: ['SettleAccount.HQConsigns', 'SettleAccount.HQSpecConsigns'],
roles: ['SettleAccount.Reports'],
icon: '结算'
},
children: [
@ -153,7 +153,7 @@ const vwMenudataRouter = {
name: 'KanBanWithCode',//命名路由
meta: {
title: '看板结算输出',
//roles: ['SettleAccount.EstimatedStockDiffReports'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色)
icon: '看板'
}
},
@ -163,7 +163,7 @@ const vwMenudataRouter = {
name: 'KanbanUnSettled',//命名路由
meta: {
title: '看板未结输出',
//roles: ['SettleAccount.EstimatedStockDiffReports'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色)
icon: '看板'
}
},
@ -173,7 +173,7 @@ const vwMenudataRouter = {
name: 'KanBanWithOutCode',//命名路由
meta: {
title: '无条码看板结算输出',
//roles: ['SettleAccount.EstimatedStockDiffReports'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色)
icon: '看板'
}
},
@ -183,7 +183,7 @@ const vwMenudataRouter = {
name: 'SparePartReport',//命名路由
meta: {
title: '备件结算输出',
//roles: ['abpvnext_master.ProjectPeople'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色)
icon: '供货'
}
}

8
vue/src/router/modules/vw_out_order.js

@ -22,7 +22,7 @@ const vwOutOrderDataRouter = {
name: 'SettleAccount',//命名路由
meta: {
title: '大众准时化出库单',
roles: ['SettleAccount.SettleAccounts'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.WMSJIT'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -32,7 +32,7 @@ const vwOutOrderDataRouter = {
name: 'SettleAccount',//命名路由
meta: {
title: '大众看板出库单',
roles: ['SettleAccount.SettleAccounts'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.WMSJIT'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -42,7 +42,7 @@ const vwOutOrderDataRouter = {
name: 'SettleAccount',//命名路由
meta: {
title: '大众无条码看板出库单',
roles: ['SettleAccount.SettleAccounts'],//控制页面角色(可以设置多个角色)
roles: ['SettleAccount.WMSJIT'],//控制页面角色(可以设置多个角色)
icon: '结算'
}
},
@ -52,7 +52,7 @@ const vwOutOrderDataRouter = {
name: 'Invoices',//命名路由
meta: {
title: '大众备件出库单',
roles: ['SettleAccount.Invoices'],
roles: ['SettleAccount.WMSJIT'],
icon: '对比'
}
},

Loading…
Cancel
Save