From 8353708704dd027dfd8641135d88eb5dfee75793 Mon Sep 17 00:00:00 2001 From: xh <11675084@qq.com> Date: Tue, 28 Oct 2025 18:32:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=9B=B2=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HandDevice/Home/components/HistoricalCurve.vue | 316 +++++++++++++++++++++ .../HandDevice/Home/components/OpenLayerMap.vue | 1 + .../Home/components/TrajectoryControls.vue | 6 +- web/src/views/HandDevice/Home/index.vue | 106 ++++--- web/src/views/gas/fencealarm/index.vue | 8 +- 5 files changed, 392 insertions(+), 45 deletions(-) create mode 100644 web/src/views/HandDevice/Home/components/HistoricalCurve.vue diff --git a/web/src/views/HandDevice/Home/components/HistoricalCurve.vue b/web/src/views/HandDevice/Home/components/HistoricalCurve.vue new file mode 100644 index 0000000..d791ce7 --- /dev/null +++ b/web/src/views/HandDevice/Home/components/HistoricalCurve.vue @@ -0,0 +1,316 @@ + + + + {{ currentMarker?.name }}手持表 + {{ currentMarker?.gasChemical }}检测 + + + + + + {{ currentMarker?.gasChemical }}浓度与电量趋势 + + + + + + + + + + + + + + + diff --git a/web/src/views/HandDevice/Home/components/OpenLayerMap.vue b/web/src/views/HandDevice/Home/components/OpenLayerMap.vue index 4ec4b78..4b93055 100644 --- a/web/src/views/HandDevice/Home/components/OpenLayerMap.vue +++ b/web/src/views/HandDevice/Home/components/OpenLayerMap.vue @@ -263,6 +263,7 @@ const fitToMarkers = () => { } const setCenter = (coords: [number, number]) => { console.log('setCenter', coords) + showMarkers.value = true if (isMapInitialized) { services.mapService?.setCenter(coords) diff --git a/web/src/views/HandDevice/Home/components/TrajectoryControls.vue b/web/src/views/HandDevice/Home/components/TrajectoryControls.vue index efa3251..435bd98 100644 --- a/web/src/views/HandDevice/Home/components/TrajectoryControls.vue +++ b/web/src/views/HandDevice/Home/components/TrajectoryControls.vue @@ -271,7 +271,7 @@ watch( { deep: true } ) -