feat: add pay wallet
This commit is contained in:
40
apps/web-antd/src/views/pay/wallet/transaction/data.ts
Normal file
40
apps/web-antd/src/views/pay/wallet/transaction/data.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
|
||||
/** 列表的字段 */
|
||||
export function useGridColumns(): VxeTableGridOptions['columns'] {
|
||||
return [
|
||||
{
|
||||
field: 'id',
|
||||
title: '编号',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
field: 'walletId',
|
||||
title: '钱包编号',
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
field: 'title',
|
||||
title: '关联业务标题',
|
||||
width: 200,
|
||||
},
|
||||
{
|
||||
field: 'price',
|
||||
title: '交易金额',
|
||||
width: 120,
|
||||
formatter: ({ cellValue }) => `${cellValue / 100} 元`,
|
||||
},
|
||||
{
|
||||
field: 'balance',
|
||||
title: '钱包余额',
|
||||
width: 120,
|
||||
formatter: ({ cellValue }) => `${cellValue / 100} 元`,
|
||||
},
|
||||
{
|
||||
field: 'createTime',
|
||||
title: '交易时间',
|
||||
width: 180,
|
||||
formatter: 'formatDateTime',
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user