edit
This commit is contained in:
@ -28,7 +28,8 @@
|
||||
[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="availableBalance" let-item let-index="index">
|
||||
<a (click)="showAccountDetail(item)">{{ item.availableBalance | currency}}</a>
|
||||
<a (click)="showAccountDetail(item)">{{ (parseFloat(item.availableBalance) +
|
||||
parseFloat(item.freezeBalance)).toFixed(2) | currency}}</a>
|
||||
</ng-template>
|
||||
</st>
|
||||
</nz-card>
|
||||
@ -187,7 +187,7 @@ export class DriverAccountComponent implements OnInit {
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.withdrawBalance }) }
|
||||
},
|
||||
{ title: '账户总余额', render: 'availableBalance', className: 'text-right' },
|
||||
{ title: '账户总余额', render: 'availableBalance', className: 'text-right', width: 180 },
|
||||
{ title: '创建时间', index: 'createTime', type: 'date', width: 150 },
|
||||
{
|
||||
title: '操作',
|
||||
@ -213,4 +213,8 @@ export class DriverAccountComponent implements OnInit {
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
parseFloat(num: any) {
|
||||
return parseFloat(num);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user