修改权限已知问题

master
lemon橪 2021-09-10 11:18:01 +08:00
parent 8c864c207a
commit 1ad729ca0e
1 changed files with 5 additions and 4 deletions

View File

@ -580,18 +580,19 @@ export default {
submitPermEdit() {
this.saveRoleWay = [];
this.selectIsSuperModel = true; //
let selectedNodes = this.$refs.tree.getCheckedNodes();
let selectedNodes = this.$refs.tree.getCheckedAndIndeterminateNodes();
let way = [];
selectedNodes.forEach((e) => {
console.log(e)
let perm = {
title: e.title,
isSuper: e.isSuper,
isSuper: e.isSuper || false,
menuId: e.id,
roleId: this.editRolePermId,
};
way.push(perm);
this.saveRoleWay = way;
this.$set(this,'saveRoleWay',way)
});
},