This commit is contained in:
Taric Xin
2022-01-13 15:10:02 +08:00
parent 6d8cf857fb
commit 074093760e
5 changed files with 73 additions and 9 deletions

View File

@ -0,0 +1,6 @@
<st #st [data]="url" [columns]="columns"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }"
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
[loading]="service.http.loading" [scroll]="{ y: '370px' }">
</st>

View File

@ -0,0 +1,28 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { STComponent, STColumn, STRequestOptions } from '@delon/abc/st';
import { BaseService } from '../../services';
@Component({
selector: 'app-account-detail',
templateUrl: './account-detail.component.html'
})
export class AccountDetailComponent implements OnInit {
@ViewChild('st', { static: true })
st!: STComponent;
columns: STColumn[] = [
{ title: '网络货运人', index: 'phone' },
{ title: '平安账户余额', index: 'ltdName' },
{ title: '浦发账户余额', index: 'bankTypeLabel' }
];
url = '';
isCanCreate = false;
constructor(public service: BaseService) {}
ngOnInit(): void {}
beforeReq = (requestOptions: STRequestOptions) => {
return requestOptions;
};
}