Commit 66a3e259 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:价格显示处理

parent 46551319
...@@ -97,10 +97,18 @@ const Products: React.FC<{}> = () => { ...@@ -97,10 +97,18 @@ const Products: React.FC<{}> = () => {
dataIndex: 'min', dataIndex: 'min',
key: 'min', key: 'min',
render: (text:any, reocrd:any) => { render: (text:any, reocrd:any) => {
if(reocrd.priceType === 1) if(reocrd.priceType === 1){
return <>{reocrd.min} ~ ¥{reocrd.max}</> if(reocrd.max === reocrd.min)
if(reocrd.priceType === 3) return <>{reocrd.min}</>
return <>{reocrd.min} ~ {reocrd.max}</> else
return <>{reocrd.min} ~ ¥{reocrd.max}</>
}
if(reocrd.priceType === 3){
if(reocrd.max === reocrd.min)
return <>{reocrd.min}</>
else
return <>{reocrd.min} ~ {reocrd.max}</>
}
if(reocrd.priceType === 2) if(reocrd.priceType === 2)
return null return null
} }
......
...@@ -111,10 +111,18 @@ const Products: React.FC<{}> = () => { ...@@ -111,10 +111,18 @@ const Products: React.FC<{}> = () => {
dataIndex: 'min', dataIndex: 'min',
key: 'min', key: 'min',
render: (text:any, reocrd:any) => { render: (text:any, reocrd:any) => {
if(reocrd.priceType === 1) if(reocrd.priceType === 1){
return <>{reocrd.min} ~ ¥{reocrd.max}</> if(reocrd.max === reocrd.min)
if(reocrd.priceType === 3) return <>{reocrd.min}</>
return <>{reocrd.min} ~ {reocrd.max}</> else
return <>{reocrd.min} ~ ¥{reocrd.max}</>
}
if(reocrd.priceType === 3){
if(reocrd.max === reocrd.min)
return <>{reocrd.min}</>
else
return <>{reocrd.min} ~ {reocrd.max}</>
}
if(reocrd.priceType === 2) if(reocrd.priceType === 2)
return null return null
} }
......
...@@ -48,7 +48,7 @@ const Trademark: React.FC<{}> = () => { ...@@ -48,7 +48,7 @@ const Trademark: React.FC<{}> = () => {
key: 'memberName', key: 'memberName',
}, },
{ {
title: '申请时间', title: '申请审核时间',
dataIndex: 'applyTime', dataIndex: 'applyTime',
key: 'applyTime', key: 'applyTime',
render: (text: any, record: any) => text && moment(text).format('YYYY-MM-DD HH:mm:ss'), render: (text: any, record: any) => text && moment(text).format('YYYY-MM-DD HH:mm:ss'),
......
...@@ -50,7 +50,7 @@ const Trademark: React.FC<{}> = () => { ...@@ -50,7 +50,7 @@ const Trademark: React.FC<{}> = () => {
key: 'memberName', key: 'memberName',
}, },
{ {
title: '申请时间', title: '申请审核时间',
dataIndex: 'applyTime', dataIndex: 'applyTime',
key: 'applyTime', key: 'applyTime',
render: (text: any, record: any) => text && moment(text).format('YYYY-MM-DD HH:mm:ss'), render: (text: any, record: any) => text && moment(text).format('YYYY-MM-DD HH:mm:ss'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment