|
@ -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,22 +392,24 @@ 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] |
|
|
item.fillColor = this.colorFillArray[1] |
|
|
item.fillColor = this.colorFillArray[1] |
|
|
} else { |
|
|
} else { |
|
|
item.color = this.colorArray[2] |
|
|
item.color = this.colorArray[2] |
|
|
item.fillColor = this.colorFillArray[2] |
|
|
item.fillColor = this.colorFillArray[2] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
break |
|
|
break |
|
|
} |
|
|
} |
|
|