Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
wangshiming
2022-04-28 19:58:17 +08:00
2 changed files with 13 additions and 4 deletions

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));
}