From 020b21df398777e7129534c4ef95c97ed3867e07 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Tue, 26 Apr 2022 21:26:42 +0800 Subject: [PATCH] edit --- .../menu-tree/menu-tree.component.ts | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) 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 cdc802f7..00c168fa 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 @@ -216,28 +216,15 @@ export class MenuTreeComponent implements OnInit, OnChanges { this.changeData.emit(result); return result; } - overWashTree(children: any[], tempAuthorityIdDTOListMenu: any[], authorityMenu: any[]) { - children.forEach((item: any) => { - // this.authorityAssistId.push(item.key); - tempAuthorityIdDTOListMenu.push(item.key); - authorityMenu.push({ authorityId: item.key, isUpdateAuthority: 1 }); - if (item.isLeaf) { - return; - } - if (item.children) { - this.overWashTree(item.children, tempAuthorityIdDTOListMenu, authorityMenu); - } - }); - } initButtonList(id: any, origin: any) { this.service.request(this.service.$api_getFunctionButtonInfo, { id }).subscribe((res: any[]) => { if (res) { origin.buttonInfoList = res; origin.all = false; - if (origin.checked) { - res.forEach(auth => this._apiAuthSet.add(auth.functionButtonId)); - } + // if (origin.checked) { + // res.forEach(auth => this._apiAuthSet.add(auth.functionButtonId)); + // } } }); }