From 8f9dea9b012640e9176ca4eec3ddbbe127cd8c0b Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Thu, 29 Feb 2024 18:55:24 +0800 Subject: [PATCH] =?UTF-8?q?CN-1563=20feat:=20=E5=A2=9E=E5=8A=A0=E7=9B=91?= =?UTF-8?q?=E5=90=AC=E6=97=B6=E9=97=B4=E8=BD=B4=E5=8F=98=E5=8C=96=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/location/Index.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/location/Index.vue b/src/views/location/Index.vue index f9771a0e..0f5a4513 100644 --- a/src/views/location/Index.vue +++ b/src/views/location/Index.vue @@ -447,7 +447,6 @@ export default { return [] }, async queryTraceTracking () { - console.info(this.trackingSubscribers) if (this.trackingSubscribers.length > 0) { const params = { ...this.timeFilter, @@ -671,6 +670,18 @@ export default { } else if (n === 'locationMap') { await this.initLocationMapTab() } + }, + // 时间轴改变时,重新查询人marker + async minuteTimeFilter (n) { + this.humanMarkers.forEach(marker => { + marker.remove && marker.remove() + }) + this.humanMarkers = [] + + const mapFollowedSubscriberData = await this.queryMapFollowedSubscriber() + if (mapFollowedSubscriberData.length > 0) { + this.renderMarker(mapFollowedSubscriberData, this.tooltipType.human) + } } }, computed: { @@ -753,7 +764,6 @@ export default { test.forEach(id => { trackingSubscribers.value.push({ subscriberId: id }) }) - console.info(trackingSubscribers) const currentShowSubscriber = ref(null) const loading = ref({