|
|
@ -140,7 +140,7 @@ const DetailForm = (props) => { |
|
|
|
{isPatrol ? <Descriptions title="基础信息" bordered style={{ marginBottom: 20 }}> |
|
|
|
{info.map(obj => { |
|
|
|
return ( |
|
|
|
obj.skip ? null : <Descriptions.Item label={obj.key} span={obj.name === 'roadSectionStart' ? 3 : 1}> {obj.name === 'projectType' ? |
|
|
|
obj.skip ? null : <Descriptions.Item label={obj.key} span={obj.name === 'roadSectionStart' || obj.name === 'address' ? 3 : 1}> {obj.name === 'projectType' ? |
|
|
|
reportTypeText(data[obj.name]) : obj.name === 'reportType' ? |
|
|
|
data['codeRoad'] && data['codeRoad'].length ? data['codeRoad'][0] === 'X' ? '县道' : data['codeRoad'][0] === 'Y' ? '乡道' : '村道' : '' |
|
|
|
: obj.name === 'roadSectionStart' ? data[obj.name] + '-' + data['roadSectionEnd'] || '' : data[obj.name] || ''}</Descriptions.Item> |
|
|
@ -170,7 +170,7 @@ const DetailForm = (props) => { |
|
|
|
patrolContent.map(obj => { |
|
|
|
return ( |
|
|
|
obj.skip ? null : <Descriptions.Item label={obj.key}> |
|
|
|
{obj.name === 'inspectionNoException' ? <Checkbox checked={data['inspectionNoException']} ></Checkbox> : data[obj.name] || ''} |
|
|
|
{obj.name === 'inspectionNoException' && data['inspectionNoException'] ? <Checkbox checked={data['inspectionNoException']} ></Checkbox> : data[obj.name] || ''} |
|
|
|
</Descriptions.Item> |
|
|
|
) |
|
|
|
}) |
|
|
|