This commit is contained in:
Taric Xin
2022-03-02 16:15:39 +08:00
parent 3e08b87143
commit 6908a84e25
6 changed files with 57 additions and 16 deletions

View File

@ -19,6 +19,8 @@ export class PlatformAccountComponent implements OnInit {
columns: STColumn[] = this.initST();
info: any = {};
static: any = {};
constructor(public service: FreightAccountService, private router: Router, private nzModalService: NzModalService) {}
ngOnInit(): void {
@ -29,6 +31,7 @@ export class PlatformAccountComponent implements OnInit {
if (this.sf) {
Object.assign(requestOptions.body, { ...this.sf.value });
}
this.loadStatistics(requestOptions.body);
return requestOptions;
};
@ -44,6 +47,14 @@ export class PlatformAccountComponent implements OnInit {
});
}
loadStatistics(params: any) {
this.service.request(this.service.$api_get_platform_account_statistics, params).subscribe(res => {
if (res) {
this.static = res;
}
});
}
/**
* 重置表单
*/