This commit is contained in:
PC-202306242200\Administrator
2024-09-21 21:36:56 +08:00
parent 414440b6d1
commit ee8c853b79
5 changed files with 9 additions and 9 deletions

View File

@@ -97,12 +97,12 @@ const LogTableList: React.FC = () => {
},
{
title: '支付类型',
dataIndex: 'businessPayType',
dataIndex: 'orderPlatform',
valueType: 'text',
search: true,
render: (_: any, record: any) => {
let color = record.businessPayType == 1 ? 'volcano' : record.businessPayType == 2 ? 'orange' : 'red'
return <Tag color={color}>{record.businessPayType == 1 ? '微信' : record.businessPayType == 2 ? '支付宝' : '钱包'}</Tag>
let color = record.orderPlatform == 1 ? 'volcano' : record.orderPlatform == 2 ? 'orange' : 'red'
return <Tag color={color}>{record.orderPlatform == 2 ? '微信' : record.orderPlatform == 3 ? '支付宝' : record.orderPlatform == 1 ? '钱包' : '-'}</Tag>
},
renderFormItem: (
_,
@@ -110,9 +110,9 @@ const LogTableList: React.FC = () => {
form,
) => {
const statusMap = [
{ label: '微信', value: 1 },
{ label: '支付宝', value: 2 },
{ label: '钱包', value: 3 },
{ label: '微信', value: 2 },
{ label: '支付宝', value: 3 },
{ label: '钱包', value: 1 },
]
return <Select
{...fieldProps}