This commit is contained in:
Taric Xin
2022-04-28 19:55:12 +08:00
parent 02ea61fa22
commit 7d25e6c9a1

View File

@ -122,8 +122,17 @@ export class MenuTreeComponent implements OnInit, OnChanges {
});
}
} else {
console.log(event);
if (event.node?.isChecked) {
this.recursionSetNodeAuth(event.node.origin);
if (event.node.parentNode) {
this._NodeAuthMap.set(event.node.parentNode.origin.id, {
authorityId: event.node.parentNode.origin.id,
buttonAuthorityIds: [],
isUpdateAuthority: 1
});
}
if (this.origin.checked) {
this.origin.buttonInfoList.forEach((auth: any) => this._apiAuthSet.add(auth.functionButtonId));
}