From 0af4ecb9b2047b8ba6d00e891050cf2d68b829a6 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期六, 27 五月 2023 20:41:18 +0800 Subject: [PATCH] 代码提交 --- src/views/Tools/queryinfo.vue | 50 ++++++++++++++++++++++++++++++-------------------- 1 files changed, 30 insertions(+), 20 deletions(-) diff --git a/src/views/Tools/queryinfo.vue b/src/views/Tools/queryinfo.vue index 83702c6..bb7d8ad 100644 --- a/src/views/Tools/queryinfo.vue +++ b/src/views/Tools/queryinfo.vue @@ -1,16 +1,20 @@ <template> <div class="InfoPopup"> - <Popup ref="pop" - v-for="(data, index) in PopupData" - :key="data.id" - :title="data.title || '鎻愮ず'" - maxHeight="400" - @close="close(data.id)" - left="calc(90% - 900px)" - top="calc(100% - 470px) "> + <Popup + ref="pop" + v-for="(data, index) in PopupData" + :key="data.id" + :title="data.title || '鎻愮ず'" + maxHeight="400" + @close="close(data.id)" + left="calc(90% - 900px)" + top="calc(100% - 470px) " + > <div> - <div style="width:940px;height:400px;" - v-drag> + <div + style="width:940px;height:400px;" + v-drag + > <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'" /> @@ -37,7 +41,7 @@ pipeLineAnaly, mapPickUpPop }, - data () { + data() { return { // 寮圭獥鏁版嵁 PopupData: ['queryinfo'], @@ -46,7 +50,11 @@ }; }, computed: {}, - mounted () { }, + mounted() { + + + + }, directives: { drag: { inserted: function (el) { @@ -57,8 +65,7 @@ const disX = e.clientX; const w = dragDom.clientWidth; const minW = 500; - const maxW = 1024; - + const maxW = 940; var nw; document.onmousemove = function (e) { // 閫氳繃浜嬩欢濮旀墭锛岃绠楃Щ鍔ㄧ殑璺濈 @@ -80,14 +87,14 @@ }, methods: { // 鍏抽棴鎵�鏈� - closeAll () { + closeAll() { this.PopupData.forEach((item) => { item.close && item.close(); }); this.PopupData = []; }, // 鍏抽棴寮圭獥 - close (id) { + close(id) { let index = this.PopupData.findIndex((item) => { console.log(item); return item.id === id; @@ -98,6 +105,7 @@ 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); @@ -125,7 +133,7 @@ this.$store.state.histLenged = false; }, // 鎵撳紑寮圭獥 - open (title, value, style = {}) { + open(title, value, style = {}) { this.PopupData.push({ id: this.createRandomId(), title, @@ -139,7 +147,7 @@ return this.PopupData[index]; }, // 闅忔満id - createRandomId () { + createRandomId() { return ( (Math.random() * 10000000).toString(16).substr(0, 4) + '-' + @@ -148,10 +156,12 @@ Math.random().toString().substr(2, 5) ); }, - mouseDown (event) { + mouseDown(event) { // document.addEventListener("mousemove", this.mouseMove); // this.lastX = event.screenX; }, }, }; -</script> \ No newline at end of file +</script> + + -- Gitblit v1.9.3