From d06f7ad0231d5fb029ab8520bf442590d3bab20b Mon Sep 17 00:00:00 2001
From: guonan <guonan201020@163.com>
Date: 星期三, 16 七月 2025 15:29:13 +0800
Subject: [PATCH] 完善监测设备弹窗

---
 src/store/simulation.js |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/store/simulation.js b/src/store/simulation.js
index a1b2f8a..e810802 100644
--- a/src/store/simulation.js
+++ b/src/store/simulation.js
@@ -1,7 +1,11 @@
 // stores/ui.js
 import { defineStore } from 'pinia'
 import { ref } from 'vue'
+import { showDeviceDetail } from "@/store";
 export const useSimStore = defineStore('simulation', () => {
+    // 鏂潰鏁版嵁
+    const crossSection = ref([])
+    const openDia = ref(true)
     // 鍘嗗彶鍥炴斁鍒楄〃
     const rePlayList = ref([])
     // 鍖椾含甯傛墍鏈夋潙鐨刢ode
@@ -16,6 +20,8 @@
     const DeviceShowSwitch = ref(false)
     const DangerShowSwitch = ref(false)
     const DangerPoint = ref([])
+    // 娉ヤ綅璁�
+    const selectNWJ = ref()
     // 鐩戞祴璁惧鍒楄〃
     const devices = ref([])
     const navigationShow = ref(true)
@@ -48,6 +54,8 @@
     const rainFalls = ref()
     // 闄嶉洦鍗曚綅
     const intensityUnit = ref()
+    // 鏂规涓嬫按娣辨祦閫熺瓑鏁版嵁
+    let schemWaterInfo = ref([])
     const setSelectedScheme = (scheme) => {
         selectedScheme.value = scheme;
 
@@ -150,7 +158,6 @@
     const startMNPG = () => {
         init()
         isShowEarth.value = false
-
     }
 
     const setBackToHome = (value) => {
@@ -159,6 +166,7 @@
 
     // 瀵艰埅鐐瑰嚮
     const handleNavClick = (index) => {
+        showDeviceDetail.value = false;
         switch (index) {
             case 1:
                 startYHGL()
@@ -213,8 +221,12 @@
         userSelectedLayers,
         devices,
         frameNum,
+        schemWaterInfo,
         layerDate,
         rePlayList,
+        selectNWJ,
+        openDia,
+        crossSection,
 
         // 鏂规鐩稿叧鏂规硶
         setSchemCard,

--
Gitblit v1.9.3