Browse Source

(*)巡检记录查看修改

master
peng.peng 1 year ago
parent
commit
46debdfb2c
  1. 10
      web/client/src/sections/issueHandle/containers/patrolRecord.js
  2. 2
      web/client/src/sections/patrolManage/containers/patrolRecord.js

10
web/client/src/sections/issueHandle/containers/patrolRecord.js

@ -132,6 +132,16 @@ const PatrolRecord = (props) => {
record?.points?.inspectContent ? Object.keys(record?.points?.inspectContent).map(key => {
recordLevels.push(record?.points?.inspectContent[key]?.level)
}) : ''
if (Array.isArray(record?.points?.inspectContent)) {
record?.points?.inspectContent?.map(x => {
x.checkItems?.map(v => {
recordLevels.push(v?.level)
})
})
}
const level = LEVELS_.find(s => recordLevels.find(x => x == s))
return level || '-';
}

2
web/client/src/sections/patrolManage/containers/patrolRecord.js

@ -276,7 +276,7 @@ const PatrolRecord = (props) => {
<Col span={5} style={{}}>{k?.name} </Col>
<Col span={19}>
{
!inspectContent[v].alarm ? '正常' :
!k.level ? '正常' :
<Collapse ghost style={{ padding: 0 }}>
<Panel header="异常" key="1" style={{ padding: 0 }}>
<Row>

Loading…
Cancel
Save