edit
This commit is contained in:
@ -216,28 +216,15 @@ export class MenuTreeComponent implements OnInit, OnChanges {
|
|||||||
this.changeData.emit(result);
|
this.changeData.emit(result);
|
||||||
return 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) {
|
initButtonList(id: any, origin: any) {
|
||||||
this.service.request(this.service.$api_getFunctionButtonInfo, { id }).subscribe((res: any[]) => {
|
this.service.request(this.service.$api_getFunctionButtonInfo, { id }).subscribe((res: any[]) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
origin.buttonInfoList = res;
|
origin.buttonInfoList = res;
|
||||||
origin.all = false;
|
origin.all = false;
|
||||||
if (origin.checked) {
|
// if (origin.checked) {
|
||||||
res.forEach(auth => this._apiAuthSet.add(auth.functionButtonId));
|
// res.forEach(auth => this._apiAuthSet.add(auth.functionButtonId));
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user