From 08bea873fe4e7b7b6cd1920b3542fb990b8b9b20 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Fri, 31 Dec 2021 08:11:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=B8=83bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityGovern/distributionAnalyze.vue | 24 ++++++++++--------- .../visual/communityGovern/resibuzz.vue | 6 +++-- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/views/modules/visual/communityGovern/distributionAnalyze.vue b/src/views/modules/visual/communityGovern/distributionAnalyze.vue index 88094255..e5c7754d 100644 --- a/src/views/modules/visual/communityGovern/distributionAnalyze.vue +++ b/src/views/modules/visual/communityGovern/distributionAnalyze.vue @@ -349,7 +349,7 @@ export default { const { data, code, msg } = await requestPost(url, params); if (code === 0) { - debugger + this.legendArray = [] if (data.under) { this.under = data.under @@ -392,22 +392,24 @@ export default { item.longitude = agencyItem.longitude item.latitude = agencyItem.latitude item.coordinates = agencyItem.coordinates - + debugger if (this.under) { if (item.count < this.under || item.count === this.under) { item.color = this.colorArray[0] item.fillColor = this.colorFillArray[0] - } - - if (this.above) { - if (item.count > this.under && item.count < this.above) { - item.color = this.colorArray[1] - item.fillColor = this.colorFillArray[1] - } else { - item.color = this.colorArray[2] - item.fillColor = this.colorFillArray[2] + } else { + if (this.above) { + if (item.count > this.under && item.count < this.above) { + item.color = this.colorArray[1] + item.fillColor = this.colorFillArray[1] + } else { + item.color = this.colorArray[2] + item.fillColor = this.colorFillArray[2] + } } } + + } break } diff --git a/src/views/modules/visual/communityGovern/resibuzz.vue b/src/views/modules/visual/communityGovern/resibuzz.vue index 947c6d02..92d1c819 100644 --- a/src/views/modules/visual/communityGovern/resibuzz.vue +++ b/src/views/modules/visual/communityGovern/resibuzz.vue @@ -406,8 +406,10 @@ export default { }, - handleChangeState (index) { - this.getTable() + async handleChangeState (index) { + await this.getApiData() + this.assignPieChart() + }, async handleChangeAgency (value) {