| | |
| | | // 关闭弹窗 |
| | | close(id) { |
| | | let index = this.PopupData.findIndex((item) => { |
| | | console.log(item); |
| | | console.log(item); |
| | | return item.id === id; |
| | | }); |
| | | let data = this.PopupData.splice(index, 1)[0]; |
| | | data.close && data.close(); |
| | | |
| | | |
| | | |
| | | |
| | | 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 = {}) { |