87 lines
3.1 KiB
TypeScript
87 lines
3.1 KiB
TypeScript
export const tableColumns = [
|
|
//序号
|
|
{ label: '序号', type: 'index', width: 60, align: 'center' },
|
|
//存款渠道名称
|
|
{ label: '渠道名称', prop: 'name' },
|
|
//存款渠道费用
|
|
{ label: '渠道费用', prop: 'channel_fee' },
|
|
//存款渠道类型
|
|
{ label: '入金货币', prop: 'currency.symbol' },
|
|
// 接口地址
|
|
{ label: '接口地址', prop: 'api_url' },
|
|
// 接口appid
|
|
{ label: '接口appid', prop: 'api_appid' },
|
|
{ label: '状态', prop: 'statusStr' },
|
|
]
|
|
|
|
export const formItemsData = [
|
|
{ label: '渠道名称', prop: 'name', type: 'input', placeholder: '请输入渠道名称' },
|
|
{
|
|
label: '渠道费用',
|
|
prop: 'channel_fee',
|
|
type: 'number',
|
|
min: 0,
|
|
max: 999999,
|
|
controls: false,
|
|
placeholder: '请输入渠道费用',
|
|
},
|
|
{
|
|
label: '入金货币',
|
|
prop: 'type',
|
|
type: 'select',
|
|
placeholder: '请选择类型',
|
|
}, // 类型:1法币,2数字货币
|
|
{ label: '接口地址', prop: 'api_url', type: 'input', placeholder: '请输入接口地址' },
|
|
{ label: '接口appid', prop: 'api_appid', type: 'input', placeholder: '请输入接口appid' },
|
|
{ label: '接口密钥', prop: 'api_key', type: 'input', placeholder: '请输入接口密钥' },
|
|
{
|
|
label: '账户持有人姓名',
|
|
prop: 'beneficiary_name',
|
|
type: 'input',
|
|
placeholder: '请输入账户持有人姓名',
|
|
},
|
|
{
|
|
label: '银行名称',
|
|
prop: 'beneficiary_bank_name',
|
|
type: 'input',
|
|
placeholder: '请输入银行名称',
|
|
},
|
|
{
|
|
label: '银行识别代码',
|
|
prop: 'swift_bic_code',
|
|
type: 'input',
|
|
placeholder: '请输入银行识别代码',
|
|
},
|
|
{
|
|
label: '银行地址',
|
|
prop: 'beneficiary_bank_address',
|
|
type: 'input',
|
|
placeholder: '请输入银行地址',
|
|
},
|
|
{ label: '渠道编码', prop: 'channel_code', type: 'input', placeholder: '请输入渠道编码' },
|
|
{ label: '状态', prop: 'status', type: 'radio' },
|
|
]
|
|
|
|
export const formRulesData = {
|
|
name: [{ required: true, message: '请输入渠道名称', trigger: ['change'] }],
|
|
channel_fee: [{ required: true, message: '请输入渠道费用', trigger: ['change'] }],
|
|
type: [{ required: true, message: '请选择类型', trigger: ['change'] }],
|
|
api_url: [{ required: true, message: '请输入接口地址', trigger: ['change'] }],
|
|
api_appid: [{ required: true, message: '请输入接口appid', trigger: ['change'] }],
|
|
api_key: [{ required: true, message: '请输入接口密钥', trigger: ['change'] }],
|
|
status: [{ required: true, message: '请选择状态', trigger: ['change'] }],
|
|
beneficiary_name: [{ required: true, message: '请输入账户持有人姓名', trigger: ['change'] }],
|
|
beneficiary_bank_name: [{ required: true, message: '请输入银行名称', trigger: ['change'] }],
|
|
swift_bic_code: [{ required: true, message: '请输入银行识别代码', trigger: ['change'] }],
|
|
beneficiary_bank_address: [{ required: true, message: '请输入银行地址', trigger: ['change'] }],
|
|
channel_code: [{ required: true, message: '请输入渠道编码', trigger: ['change'] }],
|
|
}
|
|
|
|
export const optionsMapData = {
|
|
type: [],
|
|
status: [
|
|
{ label: '启用', value: 1 },
|
|
{ label: '禁用', value: 2 },
|
|
],
|
|
}
|