CN-830: 修复npm-ip下钻,as a server下地图点显示不正确的问题
This commit is contained in:
@@ -50,7 +50,7 @@ export default {
|
|||||||
mixins: [chartMixin],
|
mixins: [chartMixin],
|
||||||
watch: {
|
watch: {
|
||||||
timeFilter: {
|
timeFilter: {
|
||||||
handler (n) {
|
handler () {
|
||||||
this.loadAm4ChartMap(this.polygonSeries, this.worldImageSeries)
|
this.loadAm4ChartMap(this.polygonSeries, this.worldImageSeries)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -100,6 +100,7 @@ export default {
|
|||||||
if (params.type === 'serverIp' || params.type === 'clientIp') params.type = 'ip'
|
if (params.type === 'serverIp' || params.type === 'clientIp') params.type = 'ip'
|
||||||
getData(api.npm.overview.map, params).then(res => {
|
getData(api.npm.overview.map, params).then(res => {
|
||||||
this.showError = false
|
this.showError = false
|
||||||
|
console.log('打印数据', res)
|
||||||
if (res && res.length > 0) {
|
if (res && res.length > 0) {
|
||||||
const subParams = {
|
const subParams = {
|
||||||
...params,
|
...params,
|
||||||
@@ -140,6 +141,9 @@ export default {
|
|||||||
})
|
})
|
||||||
this.loadMarkerData(imageSeries, mapData)
|
this.loadMarkerData(imageSeries, mapData)
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
// 没数据,清空图表
|
||||||
|
imageSeries.data = [{}]
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
this.showError = true
|
this.showError = true
|
||||||
|
|||||||
Reference in New Issue
Block a user