From d77319a67b2e5595b9232702f5f3ce55036a85c4 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 16 Oct 2024 18:19:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6=E8=83=BD=E5=A4=9F=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E8=89=B2=E5=9D=97=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/location/Index.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/views/location/Index.vue b/src/views/location/Index.vue index 239b89b4..ada94be9 100644 --- a/src/views/location/Index.vue +++ b/src/views/location/Index.vue @@ -879,7 +879,6 @@ export default { try { data.forEach(marker => { if (type === this.tooltipType.human && (marker.subscriberDto || marker.subscriberLatitude)) { - const el = document.createElement('div') el.className = `map-marker map-marker--${type}` if (marker.subscriberId === this.highlightSubscriber.subscriberId) { @@ -1480,7 +1479,7 @@ export default { }, // 地图上点击多边形 hexagonClick (e) { - /*if (this.tooltip.type === this.tooltipType.hexagon) { + /* if (this.tooltip.type === this.tooltipType.hexagon) { this.removeHighlightHexagon() // 点击时已经高亮的话,取消过滤条件 if (this.curHexId === this.currentPolygon.hexId) { @@ -1493,12 +1492,14 @@ export default { this.curPageNum = 1 this.subscribersList = [] this.initSubscriberList() - }*/ + } */ // 点击时已经高亮的话,取消过滤条件 - if (this.curHexId === this.currentPolygon.hexId) { - this.curHexId = '' - } else { - this.curHexId = this.currentPolygon.hexId + if (this.tooltip.type === this.tooltipType.hexagon) { + if (this.curHexId === this.currentPolygon.hexId) { + this.curHexId = '' + } else { + this.curHexId = this.currentPolygon.hexId + } } }, addHighlightHexagon () { @@ -1584,11 +1585,11 @@ export default { }) } this.renderMarker(response.data.data, this.tooltipType.human) - /*// 给所有active的subscriber添加marker + /* // 给所有active的subscriber添加marker const toRenderMarkerSubscribers = response.data.data.filter(r => { return !this.humanMarkers.some(m => m.subscriberId === r.subscriberId) }) - this.renderMarker(toRenderMarkerSubscribers, this.tooltipType.human)*/ + this.renderMarker(toRenderMarkerSubscribers, this.tooltipType.human) */ } } })