Browse Source

fix bugs

dev
巴林闲侠 1 year ago
parent
commit
3d0de3701e
  1. 9
      web/client/src/sections/fillion/components/maintenanceTable.js
  2. 9
      web/client/src/sections/fillion/components/patrolTable.js

9
web/client/src/sections/fillion/components/maintenanceTable.js

@ -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: '所属道路',

9
web/client/src/sections/fillion/components/patrolTable.js

@ -295,8 +295,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'
? '乡道'
: '村道'
: ''
}
} : '',
isRoad ?

Loading…
Cancel
Save