| | |
| | | :title="data.title || '提示'" |
| | | maxHeight="400" |
| | | @close="close(data.id)" |
| | | left="calc(100% - 960px)" |
| | | left="calc(90% - 900px)" |
| | | top="calc(100% - 470px) " |
| | | > |
| | | <div> |
| | | <div style="width:940px;height:400px;"> |
| | | |
| | | <map-menu-pop v-if="$store.state.mapPopBoxFlag == '1'" /> |
| | | <map-space-pop v-if="$store.state.mapPopBoxFlag == '2'" /> |
| | | <pipe-line-analy v-if="$store.state.mapPopBoxFlag == '3'" /> |
| | | <map-pick-up-pop v-if="$store.state.mapPopBoxFlag == '4'" /> |
| | | </div> |
| | | </div> |
| | | </Popup> |
| | |
| | | import Popup from './Popup.vue'; |
| | | import mapMenuPop from '../../components/MapView/mapMenuPop.vue'; |
| | | import mapSpacePop from '../../components/MapView/mapSpacePop.vue'; |
| | | import mapPickUpPop from '../../components/MapView/mapPickUpPop'; |
| | | import pipeLineAnaly from './pipeLineAnaly.vue' |
| | | export default { |
| | | name: 'queryinfo', |
| | |
| | | Popup, |
| | | mapMenuPop, |
| | | mapSpacePop, |
| | | pipeLineAnaly |
| | | pipeLineAnaly, |
| | | mapPickUpPop |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | // 关闭弹窗 |
| | | close(id) { |
| | | let index = this.PopupData.findIndex((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 |
| | | } |
| | | if (this.$store.state.histogramLayer.length != 0) { |
| | | for (var i in this.$store.state.histogramLayer) { |
| | | Viewer.entities.remove(this.$store.state.histogramLayer[i]) |
| | | } |
| | | } |
| | | if (window.histogramHandler != null && Cesium.defined(window.histogramHandler)) { |
| | | window.histogramHandler.removeInputAction( |
| | | Cesium.ScreenSpaceEventType.MOUSE_MOVE |
| | | ) |
| | | window.histogramHandler = null |
| | | } |
| | | }, |
| | | // 打开弹窗 |
| | | open(title, value, style = {}) { |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | |