edit
This commit is contained in:
@ -11,8 +11,7 @@ import { FreightAccountService } from '../../services/freight-account.service';
|
||||
@Component({
|
||||
selector: 'app-driver-account',
|
||||
templateUrl: './driver-account.component.html',
|
||||
styleUrls: ['./driver-account.component.less'],
|
||||
providers: [CurrencyPipe]
|
||||
styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less']
|
||||
})
|
||||
export class DriverAccountComponent implements OnInit {
|
||||
@ViewChild('st', { static: true })
|
||||
@ -24,12 +23,7 @@ export class DriverAccountComponent implements OnInit {
|
||||
columns: STColumn[] = this.initST();
|
||||
_$expand = false;
|
||||
|
||||
constructor(
|
||||
public service: FreightAccountService,
|
||||
private router: Router,
|
||||
private modal: NzModalService,
|
||||
private currencyPipe: CurrencyPipe
|
||||
) {}
|
||||
constructor(public service: FreightAccountService, private router: Router, private modal: NzModalService) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
@ -172,30 +166,28 @@ export class DriverAccountComponent implements OnInit {
|
||||
{
|
||||
title: '可用余额',
|
||||
index: 'availableBalance',
|
||||
type: 'currency',
|
||||
format: item => `${this.currencyPipe.transform(item.availableBalance)}`
|
||||
width: 140,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.availableBalance }) }
|
||||
},
|
||||
{
|
||||
title: '冻结余额',
|
||||
index: 'freezeBalance',
|
||||
type: 'currency',
|
||||
format: item => `${this.currencyPipe.transform(item.availableBalance)}`
|
||||
width: 140,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.freezeBalance }) }
|
||||
},
|
||||
{
|
||||
title: '本月累计提现金额',
|
||||
index: 'withdrawBalance',
|
||||
width: 150,
|
||||
type: 'currency',
|
||||
format: item => `${this.currencyPipe.transform(item.availableBalance)}`
|
||||
},
|
||||
{
|
||||
title: '账户总余额',
|
||||
index: 'availableBalance',
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
type: 'link',
|
||||
format: item => `${this.currencyPipe.transform(item.availableBalance)}`,
|
||||
click: item => this.showAccountDetail(item)
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.withdrawBalance }) }
|
||||
},
|
||||
{ title: '账户总余额', render: 'availableBalance', className: 'text-right' },
|
||||
{ title: '创建时间', index: 'createTime', type: 'date', width: 150 },
|
||||
{
|
||||
title: '操作',
|
||||
|
||||
Reference in New Issue
Block a user