From 9cee8c76b0b9bf384b1333a50ee443cd01ee4e31 Mon Sep 17 00:00:00 2001
From: Jin Lei <jinlei_182@163.com>
Date: 星期三, 15 十一月 2023 18:57:14 +0800
Subject: [PATCH] [菜单切换]1.切换菜单导致视频监控图层显示。

---
 src/components/menu/bottom-menu.vue |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/components/menu/bottom-menu.vue b/src/components/menu/bottom-menu.vue
index f721741..a89c765 100644
--- a/src/components/menu/bottom-menu.vue
+++ b/src/components/menu/bottom-menu.vue
@@ -564,17 +564,15 @@
         "http://10.9.2.29:8080/#/login?token=1ed14c5157acb8088efe65bc93a032c3"
       );
     },
-    switchMenu(id){
-      if(id!=1)
-      {
+    switchMenu(id) {
+
+      if (id != 1) {
         this.setViewer1Show(false);
       }
-      if(id!=3)
-      {
+      if (id != 3) {
         this.closeSjxl();
       }
-      if(id!=4)
-      {
+      if (id != 4) {
         this.closeSpjk();
       }
     },
@@ -584,7 +582,7 @@
     shoujixinling() {
       this.switchMenu(3);
       if (this.isShowSjxl) {
-   
+
         const loading = this.$loading({
           lock: true,
           text: "鎵嬫満淇′护鏁版嵁鍔犺浇涓紝璇风◢鍚�",
@@ -704,18 +702,20 @@
       }
     },
     closeSpjk() {
-      this.isShowSPJK = true;
-      if (window.sxtkGeojson) {
-        window.sxtkGeojson.deleteObject();
-        window.sxtkGeojson = null;
-        window.sxthandler.destroy();
-        //鍏抽棴寮圭獥
-        Bus.$emit("closeRightPop", true);
-        layuiLayer.close(SmartEarthPopupData.layerProp);
-        return;
-      } else {
-        Bus.$emit("closeSPJK");
-        // this.spjkLoad();
+      if (!this.isShowSPJK) {
+        this.isShowSPJK = true;
+        if (window.sxtkGeojson) {
+          window.sxtkGeojson.deleteObject();
+          window.sxtkGeojson = null;
+          window.sxthandler.destroy();
+          //鍏抽棴寮圭獥
+          Bus.$emit("closeRightPop", true);
+          layuiLayer.close(SmartEarthPopupData.layerProp);
+          return;
+        } else {
+          Bus.$emit("closeSPJK");
+          // this.spjkLoad();
+        }
       }
     },
     // 鍒嗗眰鍒嗘埛

--
Gitblit v1.9.3