edit
This commit is contained in:
		| @ -14,8 +14,7 @@ import { FreightAccountService } from '../../services/freight-account.service'; | ||||
| @Component({ | ||||
|   selector: 'app-freight-account', | ||||
|   templateUrl: './freight-account.component.html', | ||||
|   styleUrls: ['./freight-account.component.less'], | ||||
|   providers: [CurrencyPipe] | ||||
|   styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less'] | ||||
| }) | ||||
| export class FreightAccountComponent implements OnInit { | ||||
|   @ViewChild('st', { static: true }) | ||||
| @ -29,12 +28,7 @@ export class FreightAccountComponent implements OnInit { | ||||
|  | ||||
|   _$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 {} | ||||
|  | ||||
| @ -173,22 +167,23 @@ export class FreightAccountComponent implements OnInit { | ||||
|       { | ||||
|         title: '可用余额', | ||||
|         index: 'availableBalance', | ||||
|         type: 'currency', | ||||
|         format: item => `${this.currencyPipe.transform(item.availableBalance)}` | ||||
|         width: 150, | ||||
|         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: 150, | ||||
|         type: 'widget', | ||||
|         className: 'text-right', | ||||
|         widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.freezeBalance }) } | ||||
|       }, | ||||
|       { | ||||
|         title: '账户总余额', | ||||
|         index: 'description', | ||||
|         className: 'text-right', | ||||
|         type: 'link', | ||||
|         format: item => `${this.currencyPipe.transform(item.availableBalance)}`, | ||||
|         click: item => this.showAccountDetail(item) | ||||
|         render: 'description', | ||||
|         className: 'text-right' | ||||
|       }, | ||||
|       { title: '创建时间', index: 'createTime', type: 'date', width: 150 }, | ||||
|       { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user