From bf67757652766f4f917aff56a89d0a287ada4a3b Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Fri, 30 Dec 2022 14:51:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=AE=8A=E4=BA=BA=E7=BE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/saas/AppDataStatistics/components/resident.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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)