|
|
@ -40,13 +40,14 @@ const DetailForm = (props) => { |
|
|
|
|
|
|
|
const keyList = [ |
|
|
|
// { key: '编号', name: 'id' },
|
|
|
|
// isPatrol ?'巡查管理详情' :isRoad ? '建设上报详情' : '异常反馈详情'
|
|
|
|
{ key: '工程类型', name: 'projectType', skip: !isPatrol }, |
|
|
|
{ key: '反馈类型', name: 'projectType', skip: !isAnomaly }, |
|
|
|
{ key: '工程名称', name: 'projectName', skip: !isRoad }, |
|
|
|
{ key: '所在路段', name: 'road', skip: isRoad }, |
|
|
|
{ key: '具体位置', name: 'address' }, |
|
|
|
{ key: '巡查内容', name: 'content' }, |
|
|
|
{ key: '路线代码', name: 'codeRoad' }, |
|
|
|
{ key: '路线代码', name: 'codeRoad', skip: !isAnomaly && !isPatrol }, |
|
|
|
{ key: '现场照片', name: 'scenePic' }, |
|
|
|
{ key: '处理详情', name: 'handleContent', skip: !isAnomaly }, |
|
|
|
{ key: '处理图片', name: 'handlePic', skip: !isAnomaly }, |
|
|
@ -63,9 +64,7 @@ const DetailForm = (props) => { |
|
|
|
<div style={{ display: 'flex', width: '100%', justifyContent: 'space-between', margin: '12px 0' }}> |
|
|
|
<span style={{ fontSize: 16, color: 'gray', minWidth: '26%' }}>{obj.key}</span> |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
obj.name != 'scenePic' ? |
|
|
|
obj.name != 'scenePic' && obj.name != 'handlePic' ? |
|
|
|
<Input |
|
|
|
style={{ width: '70%' }} |
|
|
|
value={ |
|
|
@ -85,7 +84,14 @@ const DetailForm = (props) => { |
|
|
|
return <div style={{ width: '44%', margin: 6 }}> |
|
|
|
<Image src={qndmn + '/' + imgSrc} width={'100%'} style={{ marginBottom: 4 }} /> |
|
|
|
</div> |
|
|
|
}) : data.handlePic && data.handlePic instanceof Array ? data.handlePic.map(imgSrc => { |
|
|
|
return <div style={{ width: '44%', margin: 6 }}> |
|
|
|
<Image src={qndmn + '/' + imgSrc} width={'100%'} style={{ marginBottom: 4 }} /> |
|
|
|
</div> |
|
|
|
}) : '暂无图片' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
</div> |
|
|
|
|
|
|
|