|
|
@ -202,7 +202,7 @@ Page({ |
|
|
|
const data1=Object.entries(levelCounts).map(([name, value]) => ({ name, value })); |
|
|
|
const totalValue = data1.reduce((accumulator, item) => accumulator + item.value, 0); |
|
|
|
that.setData({ |
|
|
|
currentRepairCount: res?.filter(i => i.patrolRecordIssueHandles.length > 0?i.patrolRecordIssueHandles[0].state===6:[]).length || 0, |
|
|
|
currentRepairCount: res?.filter(i => i.patrolRecordIssueHandles.length > 0?i.patrolRecordIssueHandles[0].state===6:false).length || 0, |
|
|
|
currentPatrolCount: res.length, |
|
|
|
questions:totalValue, |
|
|
|
record:res, |
|
|
|