Browse Source

分布bug

shibei_master
jiangyy 4 years ago
parent
commit
08bea873fe
  1. 10
      src/views/modules/visual/communityGovern/distributionAnalyze.vue
  2. 6
      src/views/modules/visual/communityGovern/resibuzz.vue

10
src/views/modules/visual/communityGovern/distributionAnalyze.vue

@ -349,7 +349,7 @@ export default {
const { data, code, msg } = await requestPost(url, params); const { data, code, msg } = await requestPost(url, params);
if (code === 0) { if (code === 0) {
debugger
this.legendArray = [] this.legendArray = []
if (data.under) { if (data.under) {
this.under = data.under this.under = data.under
@ -392,13 +392,12 @@ export default {
item.longitude = agencyItem.longitude item.longitude = agencyItem.longitude
item.latitude = agencyItem.latitude item.latitude = agencyItem.latitude
item.coordinates = agencyItem.coordinates item.coordinates = agencyItem.coordinates
debugger
if (this.under) { if (this.under) {
if (item.count < this.under || item.count === this.under) { if (item.count < this.under || item.count === this.under) {
item.color = this.colorArray[0] item.color = this.colorArray[0]
item.fillColor = this.colorFillArray[0] item.fillColor = this.colorFillArray[0]
} } else {
if (this.above) { if (this.above) {
if (item.count > this.under && item.count < this.above) { if (item.count > this.under && item.count < this.above) {
item.color = this.colorArray[1] item.color = this.colorArray[1]
@ -409,6 +408,9 @@ export default {
} }
} }
} }
}
break break
} }

6
src/views/modules/visual/communityGovern/resibuzz.vue

@ -406,8 +406,10 @@ export default {
}, },
handleChangeState (index) { async handleChangeState (index) {
this.getTable() await this.getApiData()
this.assignPieChart()
}, },
async handleChangeAgency (value) { async handleChangeAgency (value) {

Loading…
Cancel
Save