edit
This commit is contained in:
@ -3,20 +3,10 @@
|
||||
[res]="{ reName: { list: 'data'} }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||
[loading]="service.http.loading" [scroll]="{ y: '370px' }">
|
||||
<ng-template st-row="ltdName" let-item let-index="index">
|
||||
<ng-container *ngIf="isCanCreate; else elsePATemplate">
|
||||
<a (click)="createAccount(item,'1')">{{ item.promotersTelephone || '添加' }}</a>
|
||||
</ng-container>
|
||||
<ng-template #elsePATemplate>
|
||||
{{ item.promotersTelephone }}
|
||||
</ng-template>
|
||||
<ng-template st-row="paAccount" let-item let-index="index">
|
||||
<a (click)="createAccount(item,'1')">{{ item.paAccount || '添加' }}</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="bankTypeLabel" let-item let-index="index">
|
||||
<ng-container *ngIf="isCanCreate; else elsePFTemplate">
|
||||
<a (click)="createAccount(item,'2')">{{ item.promotersTelephone || '添加' }}</a>
|
||||
</ng-container>
|
||||
<ng-template #elsePFTemplate>
|
||||
{{ item.promotersTelephone }}
|
||||
</ng-template>
|
||||
<ng-template st-row="pfAccount" let-item let-index="index">
|
||||
<a (click)="createAccount(item,'2')">{{ item.pfAccount || '添加' }}</a>
|
||||
</ng-template>
|
||||
</st>
|
||||
@ -18,7 +18,7 @@ export class AccountDetailComponent implements OnInit {
|
||||
|
||||
isCanCreate = false;
|
||||
params: any = {};
|
||||
constructor(public service: BaseService, private currencyPipe: CurrencyPipe, private modalHelp: NzModalRef) {
|
||||
constructor(public service: BaseService, public currencyPipe: CurrencyPipe, private modalHelp: NzModalRef) {
|
||||
this.initST();
|
||||
}
|
||||
|
||||
@ -71,17 +71,31 @@ export class AccountDetailComponent implements OnInit {
|
||||
initST() {
|
||||
this.columns = [
|
||||
{ title: '网络货运人', index: 'ltdName', className: 'text-center' },
|
||||
{
|
||||
title: '平安资金账户',
|
||||
render: 'paAccount',
|
||||
className: 'text-center',
|
||||
iif: _ => this.isCanCreate
|
||||
},
|
||||
{
|
||||
title: '浦发资金账户',
|
||||
render: 'pfAccount',
|
||||
className: 'text-center',
|
||||
iif: _ => this.isCanCreate
|
||||
},
|
||||
{
|
||||
title: '平安账户余额',
|
||||
render: 'paBalance',
|
||||
type: 'currency',
|
||||
format: item => `${this.currencyPipe.transform(item.paBalance)}`
|
||||
className: 'text-right',
|
||||
format: item => `${this.currencyPipe.transform(item.paBalance)}`,
|
||||
iif: _ => !this.isCanCreate
|
||||
},
|
||||
{
|
||||
title: '浦发账户余额',
|
||||
render: 'pfBalance',
|
||||
type: 'currency',
|
||||
format: item => `${this.currencyPipe.transform(item.pfBalance)}`
|
||||
className: 'text-right',
|
||||
format: item => `${this.currencyPipe.transform(item.pfBalance)}`,
|
||||
iif: _ => !this.isCanCreate
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user