Commit 6b5cea23 by caoyanzhi

update: 权限数据

parent b8010d2a
...@@ -175,7 +175,7 @@ module.exports = { ...@@ -175,7 +175,7 @@ module.exports = {
}, },
monthList: { monthList: {
// 1.门店月指标 (按钮,控制“门店月指标”页面内所有操作权限); // 1.门店月指标 (按钮,控制“门店月指标”页面内所有操作权限);
monthTarget: ['门店月指标', 1, 0, 'storeMonthTask'], monthTarget: ['门店月指标', 0, 0, 'storeMonthTask'],
// 2.商户日权重 (按钮,控制“商户日权重月指标”页面内所有操作权限); // 2.商户日权重 (按钮,控制“商户日权重月指标”页面内所有操作权限);
dayTarget: ['商户日权重', 1, 0, 'companyDaySet'] dayTarget: ['商户日权重', 1, 0, 'companyDaySet']
}, },
......
...@@ -168,7 +168,22 @@ function createXls() { ...@@ -168,7 +168,22 @@ function createXls() {
}) })
} }
}) })
// return let rightErr = false;
menuJson.forEach(el => {
if (el.isRight == 0) {
const result = []
menuJson.forEach(item => {
if (item.parentCode == el.menuCode && item.isRight == 1) {
result.push(item);
}
})
if (result.length > 0) {
rightErr = true;
console.log(result, '不受权限控制的页面下不可以挂受权限控制的子页面')
}
}
})
if (rightErr) return;
const jsonArray = [...menuJson, ...buttonJson].map( item => { const jsonArray = [...menuJson, ...buttonJson].map( item => {
return { return {
'菜单名称': item.menuName, '菜单名称': item.menuName,
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment