修改权限已知问题
parent
8c864c207a
commit
1ad729ca0e
|
@ -580,18 +580,19 @@ export default {
|
||||||
submitPermEdit() {
|
submitPermEdit() {
|
||||||
this.saveRoleWay = [];
|
this.saveRoleWay = [];
|
||||||
this.selectIsSuperModel = true; //打开选择权限
|
this.selectIsSuperModel = true; //打开选择权限
|
||||||
let selectedNodes = this.$refs.tree.getCheckedNodes();
|
let selectedNodes = this.$refs.tree.getCheckedAndIndeterminateNodes();
|
||||||
let way = [];
|
let way = [];
|
||||||
selectedNodes.forEach((e) => {
|
selectedNodes.forEach((e) => {
|
||||||
|
console.log(e)
|
||||||
let perm = {
|
let perm = {
|
||||||
title: e.title,
|
title: e.title,
|
||||||
isSuper: e.isSuper,
|
isSuper: e.isSuper || false,
|
||||||
menuId: e.id,
|
menuId: e.id,
|
||||||
roleId: this.editRolePermId,
|
roleId: this.editRolePermId,
|
||||||
};
|
};
|
||||||
way.push(perm);
|
way.push(perm);
|
||||||
this.saveRoleWay = way;
|
this.$set(this,'saveRoleWay',way)
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue