From a8b3f0c6e4b19644510d8efeb7f837e50b370c06 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期日, 26 二月 2023 16:59:38 +0800 Subject: [PATCH] 管道分析定位效果修改, --- src/views/Tools/queryinfo.vue | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/views/Tools/queryinfo.vue b/src/views/Tools/queryinfo.vue index b283a42..1af86b6 100644 --- a/src/views/Tools/queryinfo.vue +++ b/src/views/Tools/queryinfo.vue @@ -65,13 +65,18 @@ return item.id === id; }); let data = this.PopupData.splice(index, 1)[0]; - // data.close && data.close(); - 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 + if (this.$store.state.pipelineEntity.length != 0) { + for (var i in this.$store.state.pipelineEntity) { + sgworld.Viewer.entities.remove(this.$store.state.pipelineEntity[i]); + } + } - + 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 + } + }, // 鎵撳紑寮圭獥 open(title, value, style = {}) { -- Gitblit v1.9.3