This commit is contained in:
Taric Xin
2021-12-30 16:37:34 +08:00
parent 5cad416499
commit bee71216b0
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<page-header-wrapper [title]="''"></page-header-wrapper> <page-header-wrapper [title]="''"></page-header-wrapper>
<button nz-button [nzSize]="'small'" (click)="menuImport()" [nzLoading]="service.http.loading"> <button nz-button (click)="menuImport()" [nzLoading]="service.http.loading">
导入 导入
</button> </button>

View File

@ -32,6 +32,7 @@ export class MenuManagerComponentsIndexComponent implements OnInit {
{ name: '运营后台', appId: this.envSrv.env.appId, enName: 'tms-obc-web' } { name: '运营后台', appId: this.envSrv.env.appId, enName: 'tms-obc-web' }
]; ];
this.selectedPlatform = this.platforms[0]; this.selectedPlatform = this.platforms[0];
this.platformChange(this.selectedPlatform);
} }
platformChange(e: { name: string; appId: string }) { platformChange(e: { name: string; appId: string }) {
@ -44,7 +45,7 @@ export class MenuManagerComponentsIndexComponent implements OnInit {
} }
loadMenus(appId: string) { loadMenus(appId: string) {
this.service.request(this.service.$api_get_all, { appId }, 'POST', true, 'FORM').subscribe(res => { this.service.request(this.service.$api_get_one, { appId },'POST',false).subscribe(res => {
console.log(res); console.log(res);
this.menus = res; this.menus = res;