|
@ -62,7 +62,7 @@ const DetailForm = (props) => { |
|
|
]; |
|
|
]; |
|
|
const renderContent = (data) => { |
|
|
const renderContent = (data) => { |
|
|
if (data) { |
|
|
if (data) { |
|
|
if (new Date(data.time) > new Date('2023-08-03')) { |
|
|
if ( moment(data.time).isAfter(moment('2023-08-03 00:00:00'))) { |
|
|
return keyList.map(obj => { |
|
|
return keyList.map(obj => { |
|
|
return <div style={{ display: 'flex', width: '100%', justifyContent: 'space-between', margin: '12px 0' }}> |
|
|
return <div style={{ display: 'flex', width: '100%', justifyContent: 'space-between', margin: '12px 0' }}> |
|
|
<span style={{ fontSize: 16, color: 'gray', minWidth: '26%' }}>{obj.key}</span> |
|
|
<span style={{ fontSize: 16, color: 'gray', minWidth: '26%' }}>{obj.key}</span> |
|
@ -217,7 +217,7 @@ const DetailList = (props) => { |
|
|
dataIndex: 'projectType', |
|
|
dataIndex: 'projectType', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
render: (text, record) => { |
|
|
render: (text, record) => { |
|
|
return record.projectType.length > 0 ? reportTypeText(text) : (record.codeRoad && record.codeRoad.length > 0) |
|
|
return record.projectType?.length > 0 ? reportTypeText(text) : (record.codeRoad && record.codeRoad.length > 0) |
|
|
? record.codeRoad[0] === 'X' |
|
|
? record.codeRoad[0] === 'X' |
|
|
? '县道' |
|
|
? '县道' |
|
|
: record.codeRoad[0] === 'Y' |
|
|
: record.codeRoad[0] === 'Y' |
|
|