|
|
@ -217,8 +217,13 @@ const DetailList = (props) => { |
|
|
|
dataIndex: 'projectType', |
|
|
|
align: 'center', |
|
|
|
render: (text, record) => { |
|
|
|
return record.projectType.length > 0 ? reportTypeText(text) : record.codeRoad?.length > 0 ? record.codeRoad[0] === 'X' ? '县道' |
|
|
|
: record.codeRoad[0] === 'Y' ? '乡道' : '村道' : '' |
|
|
|
return record.projectType.length > 0 ? reportTypeText(text) : (record.codeRoad && record.codeRoad.length > 0) |
|
|
|
? record.codeRoad[0] === 'X' |
|
|
|
? '县道' |
|
|
|
: record.codeRoad[0] === 'Y' |
|
|
|
? '乡道' |
|
|
|
: '村道' |
|
|
|
: '' |
|
|
|
} |
|
|
|
}, { |
|
|
|
title: '所属道路', |
|
|
|