mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-10 11:02:16 +00:00
revert: 回滚权限树
This commit is contained in:
parent
1f2cda6f63
commit
e575a69f45
@ -209,16 +209,7 @@ export default {
|
|||||||
const ztree = this.$refs.tree.zTree
|
const ztree = this.$refs.tree.zTree
|
||||||
const checkedNodes = ztree.getCheckedNodes()
|
const checkedNodes = ztree.getCheckedNodes()
|
||||||
const permNodes = checkedNodes.filter(node => !node.isParent)
|
const permNodes = checkedNodes.filter(node => !node.isParent)
|
||||||
const permIds = []
|
const permIds = permNodes.map(node => node.id)
|
||||||
for (const permNode of permNodes) {
|
|
||||||
let id = permNode.id
|
|
||||||
if (id.indexOf('#') !== -1) {
|
|
||||||
id = id.split('#')[1]
|
|
||||||
}
|
|
||||||
permIds.push(id)
|
|
||||||
}
|
|
||||||
// const permIds = permNodes.map(node => node.id)
|
|
||||||
|
|
||||||
const roleDetailUrl = `/api/v1/rbac/${this.object.scope}-roles/${this.object.id}/`
|
const roleDetailUrl = `/api/v1/rbac/${this.object.scope}-roles/${this.object.id}/`
|
||||||
const data = {
|
const data = {
|
||||||
permissions: permIds
|
permissions: permIds
|
||||||
|
Loading…
Reference in New Issue
Block a user