Browse Source

fix bugs

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

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

@ -217,7 +217,7 @@ 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' ? '县道'
return record.projectType.length > 0 ? reportTypeText(text) : record.codeRoad?.length > 0 ? record.codeRoad[0] === 'X' ? '县道'
: record.codeRoad[0] === 'Y' ? '乡道' : '村道' : ''
}
}, {

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

@ -295,7 +295,7 @@ 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' ? '县道'
return record.projectType.length > 0 ? reportTypeText(text) : record.codeRoad?.length > 0 ? record.codeRoad[0] === 'X' ? '县道'
: record.codeRoad[0] === 'Y' ? '乡道' : '村道' : ''
}
} : '',

Loading…
Cancel
Save