Compare commits

...

2 Commits

  1. 4
      web/client/src/sections/shouye/containers/shouye.js

4
web/client/src/sections/shouye/containers/shouye.js

@ -78,11 +78,11 @@ const Information = (props) => {
data.filter(d => d.alarm).forEach(l => { data.filter(d => d.alarm).forEach(l => {
let repairOk = l.patrolRecordIssueHandles.length && l.patrolRecordIssueHandles[0]?.state === 6;//验收通过 let repairOk = l.patrolRecordIssueHandles.length && l.patrolRecordIssueHandles[0]?.state === 6;//验收通过
if(!repairOk){//没修||没修好 if(!repairOk){//没修||没修好
let ext1 = arr1.find(a => a.name === l.point.name); let ext1 = arr1.find(a => a?.name === l?.point?.name);
if (ext1) { if (ext1) {
ext1.value++; ext1.value++;
} else { } else {
arr1.push({ name: l.point?.name, value: 1 }) arr1.push({ name: l?.point?.name, value: 1 })
} }
} else {//修好了 } else {//修好了
let ext4 = arr4.find(a => a?.name === l?.point?.name); let ext4 = arr4.find(a => a?.name === l?.point?.name);

Loading…
Cancel
Save