83 lines
2.4 KiB
TypeScript
83 lines
2.4 KiB
TypeScript
/**
|
|
* @description: 搜索配置
|
|
*/
|
|
export const search = [
|
|
//单号
|
|
{ prop: 'orderNo', label: '单号', type: 'input' as const, placeholder: '请输入流水单号', width: '140px' },
|
|
//用户名
|
|
{
|
|
prop: 'username',
|
|
label: '用户名',
|
|
type: 'input' as const,
|
|
placeholder: '请输入用户名',
|
|
width: '220px',
|
|
},
|
|
// 子账号
|
|
{
|
|
prop: 'subAccountId',
|
|
label: '子账号ID',
|
|
type: 'input' as const,
|
|
placeholder: '请输入子账号ID',
|
|
width: '220px',
|
|
},
|
|
//操作类型
|
|
{
|
|
prop: 'type',
|
|
label: '操作类型',
|
|
type: 'select' as const,
|
|
placeholder: '请选择操作类型',
|
|
width: '140px',
|
|
options: []
|
|
},
|
|
//钱包
|
|
// { prop: 'wallet', label: '钱包', type: 'select' as const, placeholder: '请选择钱包', width: '140px', options: [
|
|
// {label:"主钱包",value:"1"},
|
|
// {label:"子钱包",value:"2"},
|
|
// ] },
|
|
//开始时间
|
|
{
|
|
prop: 'startTime',
|
|
label: '开始时间',
|
|
type: 'date' as const,
|
|
dateType: 'date' as const, // 时间范围选择器
|
|
valueFormat: 'YYYY-MM-DD',
|
|
placeholder: '请选择开始时间',
|
|
width: '220px',
|
|
clearable: false,
|
|
},
|
|
//结束时间
|
|
{
|
|
prop: 'endTime',
|
|
label: '结束时间',
|
|
type: 'date' as const,
|
|
dateType: 'date' as const, // 时间范围选择器
|
|
valueFormat: 'YYYY-MM-DD',
|
|
placeholder: '请选择结束时间',
|
|
width: '220px',
|
|
clearable: false,
|
|
},
|
|
]
|
|
export const tableColumns = [
|
|
// 用户名
|
|
{ prop: 'username', label: '用户名', visible: true },
|
|
//单号
|
|
{ prop: 'orderNo', label: '单号' , width:'200', visible: true },
|
|
{ prop: 'account_id', label: '子账号', visible: true },
|
|
//操作类型
|
|
{ prop: 'type', label: '操作类型', width:'120', visible: true },
|
|
//资金流向
|
|
// { prop: 'fundDirection', label: '资金流向' },
|
|
//原有金额
|
|
{ prop: 'amount', label: '变动金额', isNumber: true , width:'120', visible: true },
|
|
{ prop: 'description', label: '描述', isNumber: true , width:'120', visible: true },
|
|
//余额变动
|
|
{ prop: 'balance', label: '变动后余额' , isNumber: true, width:'120', visible: true },
|
|
//现有余额
|
|
// { prop: 'currentBalance', label: '现有余额' },
|
|
//状态
|
|
// { prop: 'status', label: '状态' },
|
|
//创建时间
|
|
{ prop: 'createTime', label: '创建时间' , width:'180' , visible: true },
|
|
//钱包类型
|
|
{ prop: 'walletType', label: '钱包类型', width:'120', visible: true },
|
|
] |