Compare commits

...

2 Commits

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

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

@ -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 })
}
}

Loading…
Cancel
Save