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/Tools/queryinfo.vue |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/views/Tools/queryinfo.vue b/src/views/Tools/queryinfo.vue
index 1b8e65c..2ad8ec1 100644
--- a/src/views/Tools/queryinfo.vue
+++ b/src/views/Tools/queryinfo.vue
@@ -76,7 +76,11 @@
         sgworld.Creator.DeleteObject(this.$store.state.primitLayer);
         this.$store.state.primitLayer = null
       }
-
+      if (this.$store.state.histogramLayer.length != 0) {
+        for (var i in this.$store.state.histogramLayer) {
+          Viewer.entities.remove(this.$store.state.histogramLayer[i])
+        }
+      }
     },
     // 鎵撳紑寮圭獥
     open(title, value, style = {}) {

--
Gitblit v1.9.3