edit
This commit is contained in:
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置表单
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user