diff --git a/src/app/routes/sys-setting/components/organization-management/menu-tree/menu-tree.component.ts b/src/app/routes/sys-setting/components/organization-management/menu-tree/menu-tree.component.ts index 1db86b54..b71b2f52 100644 --- a/src/app/routes/sys-setting/components/organization-management/menu-tree/menu-tree.component.ts +++ b/src/app/routes/sys-setting/components/organization-management/menu-tree/menu-tree.component.ts @@ -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)); }