This commit is contained in:
Taric Xin
2022-02-22 17:11:48 +08:00
parent 12be5d37b5
commit 2d185ebd19
3 changed files with 10 additions and 7 deletions

View File

@ -25,9 +25,7 @@ export class SettingMenuComponent implements OnInit, OnChanges {
@Input() authorityAssistId: any[] = [];
@Input() roleId: any;
@Output() changeData = new EventEmitter();
constructor(public service: SystemService, private cdr: ChangeDetectorRef, private envSrv: EAEnvironmentService) {
this.getAllFunction();
}
constructor(public service: SystemService, private cdr: ChangeDetectorRef, private envSrv: EAEnvironmentService) {}
ngOnChanges(changes: SimpleChanges): void {
if (changes.isAuthorityIdDTOList) {
if (this.type === 'edit') {
@ -39,7 +37,9 @@ export class SettingMenuComponent implements OnInit, OnChanges {
}
}
ngOnInit() {}
ngOnInit() {
this.getAllFunction();
}
getAllFunction() {
this.service
.request(this.service.$api_getAllFunctionInfoByAppId, { appId: this.appId || this.envSrv.env.appId }, 'POST', true, 'FORM')