diff --git a/weapp/package/subSystem/subSystem.js b/weapp/package/subSystem/subSystem.js index 218a690..ac93ad3 100644 --- a/weapp/package/subSystem/subSystem.js +++ b/weapp/package/subSystem/subSystem.js @@ -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,