From 1024683e6e7ecc082d16373529f2411b0366c624 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 14 Feb 2023 10:48:41 +0800
Subject: [PATCH] 现有设备-警情mappopup

---
 src/components/map/components/mapPopup.vue |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/components/map/components/mapPopup.vue b/src/components/map/components/mapPopup.vue
index aa63c3b..0df1177 100644
--- a/src/components/map/components/mapPopup.vue
+++ b/src/components/map/components/mapPopup.vue
@@ -20,7 +20,7 @@
                                     </div>
                                     <div class="close" @click="closePopup" title="关闭"></div>
                                 </div>
-                                <div class="change-btn" v-show="showBtn">
+                                <div class="change-btn" v-show="detailsPopup.showBtn">
                                     <div
                                         @click="currentBtn = '接警信息'"
                                         :class="{ on: currentBtn == '接警信息' }"
@@ -153,6 +153,16 @@
         ])
     },
 
+    watch: {
+        detailsPopup: {
+            handler (newData, oldData) {
+                if (newData.showBox == false) {
+                    this.currentBtn = '接警信息'
+                }
+            }
+        }
+    },
+
     mounted () {
 
         if (this.getWidth() > 7000) {

--
Gitblit v1.9.3