|
|
@ -85,11 +85,12 @@ const Information = (props) => { |
|
|
|
arr1.push({ name: l?.point?.name, value: 1 }) |
|
|
|
} |
|
|
|
} else {//修好了
|
|
|
|
let ct = l.patrolRecordIssueHandles[0]?.cost ? parseFloat(l.patrolRecordIssueHandles[0]?.cost) : 0; |
|
|
|
let ext4 = arr4.find(a => a?.name === l?.point?.name); |
|
|
|
if (ext4) { |
|
|
|
ext4.cost += parseFloat(l.patrolRecordIssueHandles[0]?.cost); |
|
|
|
ext4.cost += ct; |
|
|
|
} else { |
|
|
|
arr4.push({ name: l?.point?.name, cost: parseFloat(l?.patrolRecordIssueHandles[0]?.cost) }) |
|
|
|
arr4.push({ name: l?.point?.name, cost: ct }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|