style:优化角色管理的已授权菜单;
This commit is contained in:
parent
ef2de5a542
commit
eef022600d
@ -124,15 +124,10 @@ export default {
|
||||
if (idx !== -1) {
|
||||
res.role.menuIdList.splice(idx, res.role.menuIdList.length - idx)
|
||||
}
|
||||
this.dataDemo = res.role.menuIdList
|
||||
setTimeout(() => {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.menuListTree.setCheckedKeys(res.role.menuIdList)
|
||||
if (this.disable) {
|
||||
this.$refs.menuListTree.filter(this.dataDemo)
|
||||
}
|
||||
})
|
||||
}, 50)
|
||||
if (this.disable) {
|
||||
this.$refs.menuListTree.filter(res.role.menuIdList)
|
||||
}
|
||||
this.defaultCheckedKeys = res.role.menuIdList
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user