Browse Source

分布bug

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

24
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
}

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

Loading…
Cancel
Save