Commit 3cc91303 by Jings

fix: 过滤权限选中数据

parent e30d4cb1
......@@ -4,7 +4,7 @@
* @Author: Drama
* @Date: 2022-09-14 11:09:43
* @LastEditors: Drama
* @LastEditTime: 2022-10-17 15:59:54
* @LastEditTime: 2022-10-18 15:13:58
* @FilePath: /haoban-3/src/views/enterprise/guide-setting-new.vue
* Copyright (C) 2022 huzhenhong. All rights reserved.
-->
......@@ -118,6 +118,11 @@ export default {
// TODO: 删除半选
let menuCodes = deepClone(res.data.result.menuCodes);
let menuList = deepClone(res.data.result.menuList);
menuList = menuList.filter(item => item.menuType != 2);
menuList.forEach(item => {
item.ownerShipArr = item.ownerShip.split('|');
});
menuList = menuList.filter(item => item.ownerShipArr.includes(String(clerkType)));
menuList.forEach(item => {
if (menuCodes.includes(item.parentCode)) {
flagCodes.push(item.parentCode);
......
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