|
|
@ -53,6 +53,7 @@ const DetailForm = (props) => { |
|
|
|
{ key: '处理详情', name: 'handleContent', skip: !isAnomaly }, |
|
|
|
{ key: '处理图片', name: 'handlePic', skip: !isAnomaly }, |
|
|
|
{ key: '处理人', name: 'performerName', skip: !isAnomaly }, |
|
|
|
{ key: '路线代码', name: 'codeRoad', skip: !isPatrol }, |
|
|
|
|
|
|
|
|
|
|
|
{ key: '道路类型', name: 'reportType', skip: !isPatrol }, |
|
|
@ -72,6 +73,7 @@ const DetailForm = (props) => { |
|
|
|
//{ key: '路线代码', name: 'codeRoad', skip: !isPatrol },
|
|
|
|
{ key: '上报图片', name: 'scenePic', skip: !isPatrol }, |
|
|
|
{ key: '上报视频', name: 'videoUrl', skip: !isPatrol }, |
|
|
|
|
|
|
|
]; |
|
|
|
const keyListOld = [ |
|
|
|
// { key: '编号', name: 'id' },
|
|
|
@ -248,6 +250,24 @@ const DetailList = (props) => { |
|
|
|
let basicDate = null; |
|
|
|
let counter = 0; |
|
|
|
//指派任务
|
|
|
|
const reportTypeText = (text) => { |
|
|
|
switch (text) { |
|
|
|
case 'road': return '道路'; |
|
|
|
//
|
|
|
|
case 'countyRoad': return '县道'; |
|
|
|
case 'villageRoad': return '乡道'; |
|
|
|
case 'rusticRoad': return '村道'; |
|
|
|
//
|
|
|
|
case 'bridge': return '桥梁'; |
|
|
|
case 'culvert': return '涵洞'; |
|
|
|
case 'other': return '其他'; |
|
|
|
//
|
|
|
|
case 'conserve': return '养护'; |
|
|
|
case 'patrol': return '巡查'; |
|
|
|
case 'construction': return '在建'; |
|
|
|
default: return text; |
|
|
|
} |
|
|
|
} |
|
|
|
const columns = [ |
|
|
|
// isPatrol ? {
|
|
|
|
// title: '编号1',
|
|
|
@ -275,22 +295,8 @@ const DetailList = (props) => { |
|
|
|
dataIndex: 'projectType', |
|
|
|
align: 'center', |
|
|
|
render: (text, record) => { |
|
|
|
switch (text) { |
|
|
|
case 'road': return '道路'; |
|
|
|
//
|
|
|
|
case 'countyRoad': return '县道'; |
|
|
|
case 'villageRoad': return '乡道'; |
|
|
|
case 'rusticRoad': return '村道'; |
|
|
|
//
|
|
|
|
case 'bridge': return '桥梁'; |
|
|
|
case 'culvert': return '涵洞'; |
|
|
|
case 'other': return '其他'; |
|
|
|
//
|
|
|
|
case 'conserve': return '养护'; |
|
|
|
case 'patrol': return '巡查'; |
|
|
|
case 'construction': return '在建'; |
|
|
|
default: return text; |
|
|
|
} |
|
|
|
return record.projectType.length > 0 ? reportTypeText(text) : record.codeRoad.length > 0 ? record.codeRoad[0] === 'X' ? '县道' |
|
|
|
: record.codeRoad[0] === 'Y' ? '乡道' : '村道' : '' |
|
|
|
} |
|
|
|
} : '', |
|
|
|
isRoad ? |
|
|
|