|
@ -45,7 +45,7 @@ const DetailForm = (props) => { |
|
|
const keyList = [ |
|
|
const keyList = [ |
|
|
// { key: '编号', name: 'id' },
|
|
|
// { key: '编号', name: 'id' },
|
|
|
// isPatrol ?'巡查管理详情' :isRoad ? '建设上报详情' : '异常反馈详情'
|
|
|
// isPatrol ?'巡查管理详情' :isRoad ? '建设上报详情' : '异常反馈详情'
|
|
|
{ key: '工程类型', name: 'projectType', skip: isPatrol }, |
|
|
{ key: '工程类型', name: 'projectType', skip: !isPatrol }, |
|
|
{ key: '反馈类型', name: 'projectType', skip: !isAnomaly }, |
|
|
{ key: '反馈类型', name: 'projectType', skip: !isAnomaly }, |
|
|
{ key: '工程名称', name: 'projectName', skip: !isRoad }, |
|
|
{ key: '工程名称', name: 'projectName', skip: !isRoad }, |
|
|
{ key: '所在路段', name: 'road', skip: isPatrol }, |
|
|
{ key: '所在路段', name: 'road', skip: isPatrol }, |
|
@ -53,6 +53,7 @@ const DetailForm = (props) => { |
|
|
{ key: '巡查内容', name: 'content', skip: isPatrol }, |
|
|
{ key: '巡查内容', name: 'content', skip: isPatrol }, |
|
|
{ key: '路线代码', name: 'codeRoad', skip: !isAnomaly && isPatrol }, |
|
|
{ key: '路线代码', name: 'codeRoad', skip: !isAnomaly && isPatrol }, |
|
|
{ key: '现场照片', name: 'scenePic', skip: isPatrol }, |
|
|
{ key: '现场照片', name: 'scenePic', skip: isPatrol }, |
|
|
|
|
|
{ key: '处理意见', name: 'handleOpinions', skip: !isAnomaly }, |
|
|
{ key: '处理详情', name: 'handleContent', skip: !isAnomaly }, |
|
|
{ key: '处理详情', name: 'handleContent', skip: !isAnomaly }, |
|
|
{ key: '处理图片', name: 'handlePic', skip: !isAnomaly }, |
|
|
{ key: '处理图片', name: 'handlePic', skip: !isAnomaly }, |
|
|
{ key: '处理人', name: 'performerName', skip: !isAnomaly }, |
|
|
{ key: '处理人', name: 'performerName', skip: !isAnomaly }, |
|
@ -89,6 +90,7 @@ const DetailForm = (props) => { |
|
|
{ key: '巡查内容', name: 'content' }, |
|
|
{ key: '巡查内容', name: 'content' }, |
|
|
{ key: '路线代码', name: 'codeRoad', skip: !isAnomaly && !isPatrol }, |
|
|
{ key: '路线代码', name: 'codeRoad', skip: !isAnomaly && !isPatrol }, |
|
|
{ key: '现场照片', name: 'scenePic' }, |
|
|
{ key: '现场照片', name: 'scenePic' }, |
|
|
|
|
|
{ key: '处理意见', name: 'handleOpinions', skip: !isAnomaly }, |
|
|
{ key: '处理详情', name: 'handleContent', skip: !isAnomaly }, |
|
|
{ key: '处理详情', name: 'handleContent', skip: !isAnomaly }, |
|
|
{ key: '处理图片', name: 'handlePic', skip: !isAnomaly }, |
|
|
{ key: '处理图片', name: 'handlePic', skip: !isAnomaly }, |
|
|
{ key: '处理人', name: 'performerName', skip: !isAnomaly } |
|
|
{ key: '处理人', name: 'performerName', skip: !isAnomaly } |
|
@ -112,7 +114,7 @@ const DetailForm = (props) => { |
|
|
<div style={{ display: 'flex', width: '100%', justifyContent: 'space-between', margin: '12px 0' }}> |
|
|
<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> |
|
|
{ |
|
|
{ |
|
|
obj.name != 'scenePic' && obj.name != 'roadSectionStart' && obj.name != 'videoUrl' && obj.name.indexOf('conserve') == -1 ? |
|
|
obj.name != 'handlePic' && obj.name != 'scenePic' && obj.name != 'roadSectionStart' && obj.name != 'videoUrl' && obj.name.indexOf('conserve') == -1 ? |
|
|
<Input |
|
|
<Input |
|
|
style={{ width: '70%' }} |
|
|
style={{ width: '70%' }} |
|
|
value={ |
|
|
value={ |
|
@ -996,7 +998,11 @@ const PatrolTable = (props) => { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
function mapStateToProps(state) { |
|
|
function mapStateToProps(state) { |
|
|
|
|
|
<<<<<<< Updated upstream |
|
|
const { auth, depMessage, userList, reportList, reportDetail, global, allDepUsers, anspectionNotificationPhoneList } = state; |
|
|
const { auth, depMessage, userList, reportList, reportDetail, global, allDepUsers, anspectionNotificationPhoneList } = state; |
|
|
|
|
|
======= |
|
|
|
|
|
const { auth, depMessage, userList, reportList, reportDetail, global, allDepUsers } = state; |
|
|
|
|
|
>>>>>>> Stashed changes |
|
|
const pakData = (dep) => { |
|
|
const pakData = (dep) => { |
|
|
return dep.map((d) => { |
|
|
return dep.map((d) => { |
|
|
return { |
|
|
return { |
|
|