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) {