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