From 9aae0c80b607a28f4e37c5b419cf5c28a92fbaaa Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Fri, 27 Sep 2024 15:44:34 +0800 Subject: [PATCH] =?UTF-8?q?CN-1705=20fix:=20=E7=82=B9=E5=87=BBsubscriber?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=90=8E=EF=BC=8C=E5=9C=B0=E5=9B=BE=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E5=88=B0=E7=9B=AE=E7=9A=84=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table/location/MyFollowTable.vue | 2 +- src/views/location/Index.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/table/location/MyFollowTable.vue b/src/components/table/location/MyFollowTable.vue index 2a0561bf..e0eddf20 100644 --- a/src/components/table/location/MyFollowTable.vue +++ b/src/components/table/location/MyFollowTable.vue @@ -90,7 +90,7 @@ export default { show: true, minWidth: 150 }, { - label: this.$t('location.isActive'), + label: this.$t('overall.status'), prop: 'active', show: true, minWidth: 80 diff --git a/src/views/location/Index.vue b/src/views/location/Index.vue index 0dfa4ed8..6a3fd53d 100644 --- a/src/views/location/Index.vue +++ b/src/views/location/Index.vue @@ -1203,7 +1203,6 @@ export default { this.humanMarkers.forEach(m => { m.getElement().classList.remove('map-marker--highlight') }) - console.info(markerData, this.highlightSubscriber) if (this.highlightSubscriber.subscriberId !== markerData.subscriberId) { el.classList.add('map-marker--highlight') this.highlightSubscriber = markerData @@ -1258,7 +1257,7 @@ export default { } } }, - // subscriber列表点击后将地图上的人图标保持特殊高亮 + // subscriber列表点击后将地图上的人图标保持特殊高亮,并移动地图中心至图标点 subscriberListClick (subscriber) { // 先删除当前所有高亮的 this.humanMarkers.forEach(m => { @@ -1271,6 +1270,7 @@ export default { const target = this.humanMarkers.find(m => subscriber.subscriberId === m.subscriberId) if (target) { target.getElement().classList.add('map-marker--highlight') + this.mapChart.panTo(target.getLngLat(), { duration: 500 }) } } },