From f373e0c0797e1800bf066fdfbb748bb9242230f6 Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期二, 08 七月 2025 17:46:02 +0800
Subject: [PATCH] 泥位计

---
 src/components/monifangzhen/WaterVelocityContent.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/components/monifangzhen/WaterVelocityContent.vue b/src/components/monifangzhen/WaterVelocityContent.vue
index 49f030a..2801bea 100644
--- a/src/components/monifangzhen/WaterVelocityContent.vue
+++ b/src/components/monifangzhen/WaterVelocityContent.vue
@@ -7,7 +7,10 @@
     <div v-else>
       <div class="location-info">
         <h3>浣嶇疆淇℃伅</h3>
-        <p class="coordinates">
+        <p v-if="deviceName" class="coordinates">
+          {{ deviceName }}
+        </p>
+        <p v-if="!deviceName" class="coordinates">
           缁忓害锛� <strong>{{ safeCurrentInfo.longitude.toFixed(3) }}&nbsp;&nbsp;&nbsp;&nbsp;</strong>
           绾害锛�<strong>{{ safeCurrentInfo.latitude.toFixed(3) }}</strong>
         </p>
@@ -38,7 +41,9 @@
 
 const simStore = useSimStore();
 const { currentInfo } = storeToRefs(simStore);
-
+const deviceName = computed(() => {
+  return currentInfo.value?.deviceName;
+});
 // 鍥捐〃 DOM 寮曠敤
 const chartDom = ref(null);
 let myChart = null;

--
Gitblit v1.9.3