style:优化角色管理的已授权菜单;
This commit is contained in:
parent
ef2de5a542
commit
eef022600d
@ -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
|
if (this.disable) {
|
||||||
setTimeout(() => {
|
this.$refs.menuListTree.filter(res.role.menuIdList)
|
||||||
this.$nextTick(() => {
|
}
|
||||||
this.$refs.menuListTree.setCheckedKeys(res.role.menuIdList)
|
this.defaultCheckedKeys = res.role.menuIdList
|
||||||
if (this.disable) {
|
|
||||||
this.$refs.menuListTree.filter(this.dataDemo)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}, 50)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user