edit
This commit is contained in:
@ -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>
|
||||
@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user