style:优化角色管理的已授权菜单;

This commit is contained in:
xiongchengqiang 2020-05-22 17:15:44 +08:00
parent ef2de5a542
commit eef022600d

View File

@ -124,15 +124,10 @@ export default {
if (idx !== -1) { if (idx !== -1) {
res.role.menuIdList.splice(idx, res.role.menuIdList.length - idx) 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) { if (this.disable) {
this.$refs.menuListTree.filter(this.dataDemo) this.$refs.menuListTree.filter(res.role.menuIdList)
} }
}) this.defaultCheckedKeys = res.role.menuIdList
}, 50)
} }
}) })
}, },