Commit 1fb4d9c4 by liyuhang19990520

权限

parent 5350aa71
......@@ -634,7 +634,7 @@ export default {
}
let a = true;
for (let key in obj) {
if (key.indexOf("danhuang") >= 0 || key.indexOf("huise") >= 0) {
if (key.indexOf("huise") >= 0) {
a = false;
}
}
......@@ -657,13 +657,15 @@ export default {
this.checkList = Array.from(new Set(childList));
} else {
console.log(this.rolePermissions);
this.checkList = this.checkList.filter((x) => {
let index = this.rolePermissions.findIndex((i) => i.id == x);
if (sonArr.indexOf(x) < 0) {
return x;
let arr = this.checkList.filter((x) => sonArr.indexOf(x) < 0);
let newArr = sonArr.filter((i) => {
let index = this.rolePermissions.findIndex((j) => j.id == i);
if (index >= 0) {
return i;
}
});
this.checkList = [...(arr || []), ...(newArr || [])];
}
},
controlCheckMap() {
......
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