This commit is contained in:
@@ -375,11 +375,14 @@
|
||||
|
||||
// 列配置
|
||||
const columnOptions = [
|
||||
{ label: 'ID', prop: 'id' },
|
||||
{ label: '配置名称', prop: 'name' },
|
||||
{ label: '配置描述', prop: 'description' },
|
||||
{ label: '支付渠道类型', prop: 'provider_type' },
|
||||
{ label: '激活状态', prop: 'is_active' },
|
||||
{ label: '商户号', prop: 'merchant_id' },
|
||||
{ label: '小程序AppID', prop: 'miniapp_app_id' },
|
||||
{ label: '公众号AppID', prop: 'oa_app_id' },
|
||||
{ label: '支付回调地址', prop: 'notify_url' },
|
||||
{ label: '创建时间', prop: 'created_at' },
|
||||
{ label: '更新时间', prop: 'updated_at' }
|
||||
]
|
||||
@@ -479,17 +482,23 @@
|
||||
return '-'
|
||||
}
|
||||
|
||||
// 获取支付回调地址
|
||||
const getNotifyUrl = (row: WechatConfig): string => {
|
||||
if (row.provider_type === 'wechat') {
|
||||
return row.wx_notify_url || '-'
|
||||
}
|
||||
if (row.provider_type === 'fuiou') {
|
||||
return row.fy_notify_url || '-'
|
||||
}
|
||||
return '-'
|
||||
}
|
||||
|
||||
// 动态列配置
|
||||
const { columnChecks, columns } = useCheckedColumns(() => [
|
||||
{
|
||||
prop: 'id',
|
||||
label: 'ID',
|
||||
width: 80
|
||||
},
|
||||
{
|
||||
prop: 'name',
|
||||
label: '配置名称',
|
||||
minWidth: 180,
|
||||
minWidth: 160,
|
||||
showOverflowTooltip: true,
|
||||
formatter: (row: WechatConfig) => {
|
||||
return h(
|
||||
@@ -505,6 +514,13 @@
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
prop: 'description',
|
||||
label: '配置描述',
|
||||
minWidth: 180,
|
||||
showOverflowTooltip: true,
|
||||
formatter: (row: WechatConfig) => row.description || '-'
|
||||
},
|
||||
{
|
||||
prop: 'provider_type',
|
||||
label: '支付渠道类型',
|
||||
@@ -529,8 +545,30 @@
|
||||
prop: 'merchant_id',
|
||||
label: '商户号',
|
||||
width: 150,
|
||||
showOverflowTooltip: true,
|
||||
formatter: (row: WechatConfig) => getMerchantId(row)
|
||||
},
|
||||
{
|
||||
prop: 'miniapp_app_id',
|
||||
label: '小程序AppID',
|
||||
width: 160,
|
||||
showOverflowTooltip: true,
|
||||
formatter: (row: WechatConfig) => row.miniapp_app_id || '-'
|
||||
},
|
||||
{
|
||||
prop: 'oa_app_id',
|
||||
label: '公众号AppID',
|
||||
width: 160,
|
||||
showOverflowTooltip: true,
|
||||
formatter: (row: WechatConfig) => row.oa_app_id || '-'
|
||||
},
|
||||
{
|
||||
prop: 'notify_url',
|
||||
label: '支付回调地址',
|
||||
minWidth: 200,
|
||||
showOverflowTooltip: true,
|
||||
formatter: (row: WechatConfig) => getNotifyUrl(row)
|
||||
},
|
||||
{
|
||||
prop: 'created_at',
|
||||
label: '创建时间',
|
||||
|
||||
Reference in New Issue
Block a user