From 60db92bf4f1e4cf4491668eb1d4281f6ac99bc02 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期一, 06 三月 2023 18:38:24 +0800
Subject: [PATCH] 前端添加柱状图显示

---
 src/views/Synthesis/LeftMenu.vue |   41 ++++++++++++++++++++++-------------------
 1 files changed, 22 insertions(+), 19 deletions(-)

diff --git a/src/views/Synthesis/LeftMenu.vue b/src/views/Synthesis/LeftMenu.vue
index baf9642..50c31de 100644
--- a/src/views/Synthesis/LeftMenu.vue
+++ b/src/views/Synthesis/LeftMenu.vue
@@ -440,27 +440,30 @@
       }
 
       if (this.isMenuFlag != val) {
-        this.$store.state.mapMenuBoolean = false;
-        this.$store.state.mapMenuBoxFlag = null;
-        this.$store.state.mapPopBoolean = false;
-        this.$store.state.mapPopBoxFlag = null;
-        sgworld.Creator.SimpleGraphic.clear();
-        this.isMenuFlag = val;
-        if (this.entityaLayers.length != 0) {
-          for (var i in this.entityaLayers) {
-            sgworld.Viewer.entities.remove(this.entityaLayers[i]);
+        if (res.id != 'b9') {
+          this.$store.state.mapMenuBoolean = false;
+          this.$store.state.mapMenuBoxFlag = null;
+          this.$store.state.mapPopBoolean = false;
+          this.$store.state.mapPopBoxFlag = null;
+          sgworld.Creator.SimpleGraphic.clear();
+          this.isMenuFlag = val;
+          if (this.entityaLayers.length != 0) {
+            for (var i in this.entityaLayers) {
+              sgworld.Viewer.entities.remove(this.entityaLayers[i]);
+            }
+            this.entityaLayers = [];
           }
-          this.entityaLayers = [];
+          for (var i in this.$store.state.queryInfo) {
+            sgworld.Viewer.entities.remove(this.$store.state.queryInfo[i]);
+          }
+          this.$store.state.queryInfo = [];
+          if (this.$store.state.primitLayer != null) {
+            sgworld.Viewer.entities.remove(this.$store.state.primitLayer);
+            sgworld.Creator.DeleteObject(this.$store.state.primitLayer);
+            this.$store.state.primitLayer = null;
+          }
         }
-        for (var i in this.$store.state.queryInfo) {
-          sgworld.Viewer.entities.remove(this.$store.state.queryInfo[i]);
-        }
-        this.$store.state.queryInfo = [];
-        if (this.$store.state.primitLayer != null) {
-          sgworld.Viewer.entities.remove(this.$store.state.primitLayer);
-          sgworld.Creator.DeleteObject(this.$store.state.primitLayer);
-          this.$store.state.primitLayer = null;
-        }
+
       }
       this.showTwoMenuFlag = res.id;
 

--
Gitblit v1.9.3