diff --git a/src/project/saas/AppDataStatistics/components/resident.vue b/src/project/saas/AppDataStatistics/components/resident.vue index fd9cf1c8..578025dd 100644 --- a/src/project/saas/AppDataStatistics/components/resident.vue +++ b/src/project/saas/AppDataStatistics/components/resident.vue @@ -65,11 +65,8 @@ export default { if(res?.data) { this.data = res.data this.specialPeople = res.data.特殊人群 - for(let key in this.specialPeople) { - if(this.specialPeople[key] == 0) { - this.specialFlag = false - } - } + let specialArr = Object.values(this.specialPeople) + this.specialFlag = !specialArr.every(e=> e==0) this.ageArray = res.data.年龄层次.map(v=> v.v2) this.ageFlag = !this.ageArray.every(e=> e==0) this.sexArray = res.data.男女比例.map(v=> v.v2)