edit
This commit is contained in:
@ -14,7 +14,8 @@ import { FreightAccountService } from '../../services/freight-account.service';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'app-freight-account',
|
selector: 'app-freight-account',
|
||||||
templateUrl: './freight-account.component.html',
|
templateUrl: './freight-account.component.html',
|
||||||
styleUrls: ['./freight-account.component.less']
|
styleUrls: ['./freight-account.component.less'],
|
||||||
|
providers: [CurrencyPipe]
|
||||||
})
|
})
|
||||||
export class FreightAccountComponent implements OnInit {
|
export class FreightAccountComponent implements OnInit {
|
||||||
@ViewChild('st', { static: true })
|
@ViewChild('st', { static: true })
|
||||||
@ -32,7 +33,7 @@ export class FreightAccountComponent implements OnInit {
|
|||||||
public service: FreightAccountService,
|
public service: FreightAccountService,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private modal: NzModalService,
|
private modal: NzModalService,
|
||||||
private currencyService: CurrencyService
|
private currencyPipe: CurrencyPipe
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit(): void {}
|
ngOnInit(): void {}
|
||||||
@ -168,14 +169,20 @@ export class FreightAccountComponent implements OnInit {
|
|||||||
title: '可用余额',
|
title: '可用余额',
|
||||||
index: 'availableBalance',
|
index: 'availableBalance',
|
||||||
type: 'currency',
|
type: 'currency',
|
||||||
format: item => `¥${this.currencyService.format(item.availableBalance)}`
|
format: item => `${this.currencyPipe.transform(item.availableBalance)}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '冻结余额',
|
||||||
|
index: 'freezeBalance',
|
||||||
|
type: 'currency',
|
||||||
|
format: item => `${this.currencyPipe.transform(item.availableBalance)}`
|
||||||
},
|
},
|
||||||
{ title: '冻结余额', index: 'freezeBalance', type: 'currency' },
|
|
||||||
{
|
{
|
||||||
title: '账户总余额',
|
title: '账户总余额',
|
||||||
render: 'description',
|
index: 'description',
|
||||||
|
className: 'text-right',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
format: item => `${new CurrencyPipe('cny').transform(item.availableBalance)}`,
|
format: item => `${this.currencyPipe.transform(item.availableBalance)}`,
|
||||||
click: item => this.showAccountDetail(item)
|
click: item => this.showAccountDetail(item)
|
||||||
},
|
},
|
||||||
{ title: '创建时间', index: 'createTime', type: 'date', width: 150 },
|
{ title: '创建时间', index: 'createTime', type: 'date', width: 150 },
|
||||||
|
|||||||
Reference in New Issue
Block a user