From 43a83d4428d5d72afa49b7bf3c556a7abb64a407 Mon Sep 17 00:00:00 2001 From: xh <11675084@qq.com> Date: Thu, 30 Oct 2025 10:21:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/HandDevice/Home/components/composables/useMapEvents.ts | 2 +- web/src/views/HandDevice/Home/components/services/popup.service.ts | 3 ++- web/src/views/gas/handdetector/index.vue | 5 ++++- web/src/views/gas/tdengine/index.vue | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/web/src/views/HandDevice/Home/components/composables/useMapEvents.ts b/web/src/views/HandDevice/Home/components/composables/useMapEvents.ts index 83b1c97..7f43d1c 100644 --- a/web/src/views/HandDevice/Home/components/composables/useMapEvents.ts +++ b/web/src/views/HandDevice/Home/components/composables/useMapEvents.ts @@ -190,12 +190,12 @@ export const useMapEvents = () => { case 'fence': case 'fence-label': // popupContent = popupGenerator.handleFence(feature) - return false break default: popupContent = popupGenerator.handleMarker(feature) break } + if (!popupContent) return false // if (!popupContent) return popupElement.innerHTML = popupContent popupOverlay.setPosition(event.coordinate) diff --git a/web/src/views/HandDevice/Home/components/services/popup.service.ts b/web/src/views/HandDevice/Home/components/services/popup.service.ts index 8577311..248c271 100644 --- a/web/src/views/HandDevice/Home/components/services/popup.service.ts +++ b/web/src/views/HandDevice/Home/components/services/popup.service.ts @@ -90,6 +90,7 @@ export class PopupService { return this.handleSingleMarkerPopup(markerData as MarkerData) } - return this.handleDefaultPopup() + // return this.handleDefaultPopup() + return '' } } diff --git a/web/src/views/gas/handdetector/index.vue b/web/src/views/gas/handdetector/index.vue index aa47b6a..6701795 100644 --- a/web/src/views/gas/handdetector/index.vue +++ b/web/src/views/gas/handdetector/index.vue @@ -6,7 +6,7 @@ :model="queryParams" ref="queryFormRef" :inline="true" - label-width="120px" + label-width="80px" > +