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;
};
}

View File

@ -26,6 +26,7 @@ import { AmapModule } from './components/amap/amap.module';
import { ImageListModule } from './components/imagelist';
import { DictSelectComponent } from './components/dict-select';
import { PipeModule } from './pipes';
import { AccountDetailComponent } from './components/account-detail/account-detail.component';
const MODULES = [
AddressModule,
@ -44,7 +45,7 @@ const MODULES = [
];
// #endregion
const SHAREDCOMPONENTS = [LogisticsTimeLineComponent, DictSelectComponent];
const SHAREDCOMPONENTS = [LogisticsTimeLineComponent, DictSelectComponent, AccountDetailComponent];
@NgModule({
imports: [
@ -57,7 +58,7 @@ const SHAREDCOMPONENTS = [LogisticsTimeLineComponent, DictSelectComponent];
DelonFormModule,
...SHARED_DELON_MODULES,
...SHARED_ZORRO_MODULES,
...MODULES,
...MODULES
// third libs
],
exports: [