From 13fdb067fc3d752e8bd278de539fb2de40fe8397 Mon Sep 17 00:00:00 2001 From: lixuliang <lixuliang_hd@126.com> Date: 星期五, 10 十一月 2023 18:20:33 +0800 Subject: [PATCH] 土地管理弹窗、工具栏整合、功能点击响应 --- src/components/menu/bottom-menu.vue | 109 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 96 insertions(+), 13 deletions(-) diff --git a/src/components/menu/bottom-menu.vue b/src/components/menu/bottom-menu.vue index 9c5cf12..badb2fb 100644 --- a/src/components/menu/bottom-menu.vue +++ b/src/components/menu/bottom-menu.vue @@ -23,18 +23,24 @@ <img src="@assets/img/new/chengshibujian.png" alt="" /> </div> <div class="textbox"> - <span> 鍩庡競閮ㄤ欢 </span> + <span> 缁煎悎鎵╁睍 </span> </div> <el-dropdown-menu slot="dropdown" :append-to-body="false" class="popper-dropdown" > - <el-dropdown-item command="spjkHandle" - >瑙嗛闆嗘垚涓庡彲瑙嗗寲</el-dropdown-item - > <el-dropdown-item command="stdsjHandle" >瑙嗗浘澶ф暟鎹钩鍙�</el-dropdown-item + > + <el-dropdown-item command="bzdSystem" + >鏍囧噯鍦扮洃绠″钩鍙�</el-dropdown-item + > + <el-dropdown-item v-if="isShowSPJK" command="spjkHandle" + >瑙嗛闆嗘垚涓庡彲瑙嗗寲</el-dropdown-item + > + <el-dropdown-item v-else command="closeSpjk" + >鍏抽棴瑙嗛鐐逛綅鍒嗗竷</el-dropdown-item > <el-dropdown-item v-if="isShowSjxl" command="sjxlHandle" >鎵嬫満淇′护鐑姏鍒嗗竷</el-dropdown-item @@ -61,8 +67,11 @@ > <el-dropdown-item command="fcfhHandle">鍒嗗眰鍒嗘埛</el-dropdown-item> <!-- <el-dropdown-item command="sprhHandle">鍦烘櫙瑙嗛铻嶅悎</el-dropdown-item> --> - <el-dropdown-item command="jiqirendahui" + <el-dropdown-item v-if="isShowSPRH" command="jiqirendahui" >鍦烘櫙瑙嗛铻嶅悎</el-dropdown-item + > + <el-dropdown-item v-else command="jiqirendahui" + >鍏抽棴瑙嗛铻嶅悎</el-dropdown-item > </el-dropdown-menu> </el-dropdown> @@ -337,8 +346,11 @@ width: 155px; border: none; } +.el-dropdown /deep/ .el-dropdown-selfdefine{ + margin-left: 8px !important; +} .csbj .el-dropdown-menu { - top: -180px !important; + top: -215px !important; } .jxmx .el-dropdown-menu { top: -110px !important; @@ -355,7 +367,7 @@ border-top-color: rgba(14, 50, 143, 0.6); border-top-width: 6px; border-bottom-width: 0; - top: 166px; + top: 201px; left: 37px; } .jxmx .el-popper /deep/ .popper__arrow::after { @@ -424,6 +436,9 @@ name: "bottom-menu", data() { return { + isShowSPJK: true, + isShowSjxl: true, + isShowSPRH: true, csbjShow: false, jxmxShow: false, romanOption: [ @@ -605,7 +620,6 @@ // 閫忔槑搴� far: 166, videoarrList: [], - isShowSjxl: true, }; }, computed: { @@ -633,8 +647,14 @@ case "spjkHandle": this.spjkHandle(); break; + case "closeSpjk": + this.closeSpjk(); + break; case "stdsjHandle": this.stdsjHandle(); + break; + case "bzdSystem": + this.bzdSystem(); break; case "fcfhHandle": this.fencengfenhu(); @@ -646,7 +666,7 @@ this.shoujixinling(); break; case "closeSjxl": - this.guanbi(); + this.closeSjxl(); break; case "csgxHandle": this.csgxHandle(); @@ -657,14 +677,40 @@ } }, tdglHandle() { + if (!this.viewer1Show) { + const loading = this.$loading({ + lock: true, + text: "鍦熷湴绠$悊鍔熻兘鍔犺浇涓紝璇风◢鍚�", + spinner: "el-icon-loading", + background: "rgba(0, 0, 0, 0.7)", + }); + setTimeout(() => { + loading.close(); + }, 3500); + } + this.setViewer1Show(!this.viewer1Show); }, stdsjHandle() { + // window.location.href = + // "http://10.9.2.29:8080/#/login?token=1ed14c5157acb8088efe65bc93a032c3"; window.open( "http://10.9.2.29:8080/#/login?token=1ed14c5157acb8088efe65bc93a032c3" ); }, + bzdSystem() { + window.open("http://192.162.24.2:8076/login"); + }, shoujixinling() { + const loading = this.$loading({ + lock: true, + text: "鎵嬫満淇′护鏁版嵁鍔犺浇涓紝璇风◢鍚�", + spinner: "el-icon-loading", + background: "rgba(0, 0, 0, 0.7)", + }); + setTimeout(() => { + loading.close(); + }, 2000); this.isShowSjxl = false; let heatMapUrl = URLInCode.heatMapUrl; sgworld.Core.getJSON(heatMapUrl, (data) => { @@ -693,7 +739,7 @@ }); }); }, - guanbi() { + closeSjxl() { if (heatMapItem) { this.isShowSjxl = true; heatMapItem.deleteObject(); @@ -750,6 +796,16 @@ }); }, spjkHandle() { + const loading = this.$loading({ + lock: true, + text: "瑙嗛鐐逛綅鏁版嵁鍔犺浇涓紝璇风◢鍚�", + spinner: "el-icon-loading", + background: "rgba(0, 0, 0, 0.7)", + }); + setTimeout(() => { + loading.close(); + }, 2000); + this.isShowSPJK = false; if (window.sxtkGeojson) { window.sxtkGeojson.deleteObject(); window.sxtkGeojson = null; @@ -763,24 +819,51 @@ // this.spjkLoad(); } }, + closeSpjk() { + this.isShowSPJK = true; + if (window.sxtkGeojson) { + window.sxtkGeojson.deleteObject(); + window.sxtkGeojson = null; + window.sxthandler.destroy(); + //鍏抽棴寮圭獥 + Bus.$emit("closeRightPop", true); + layuiLayer.close(SmartEarthPopupData.layerProp); + return; + } else { + Bus.$emit("closeSPJK"); + // this.spjkLoad(); + } + }, // 鍒嗗眰鍒嗘埛 fencengfenhu() { + Bus.$emit("switchImage"); + const loading = this.$loading({ + lock: true, + text: "寤虹瓚瀹炴櫙妯″瀷鍔犺浇涓紝璇风◢鍚�", + spinner: "el-icon-loading", + background: "rgba(0, 0, 0, 0.7)", + }); + setTimeout(() => { + loading.close(); + }, 2000); Bus.$emit("ShowFCFH", true); - }, // 鏈哄櫒浜哄ぇ浼氳棰戣瀺鍚� async jiqirendahui(item) { + Bus.$emit("switch3D"); var that = this; + this.isShowSPRH = false; if (that.robotvideoarrList.length > 0) { for (var i = 0; i < that.robotvideoarrList.length; i++) { that.robotvideoarrList[i].destroy(); that.robotvideoarrList[i] = undefined; } that.robotvideoarrList = []; + this.isShowSPRH = true; } else { const loading = this.$loading({ lock: true, - text: "Loading", + text: "瑙嗛鏁版嵁鍔犺浇涓紝璇风◢鍚�", spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.7)", }); @@ -796,7 +879,6 @@ item[i].cameraIndexCode, // url: "http://10.10.4.116:8086/getCamerasInfoHls?cameraIndexCode=49ee9fed701444738112e80a4835122c", success: function (result) { - loading.close(); video = sgworld.Creator.Video3D({ cameraPosition: position, //鐩告満瀹夎浣嶇疆 heading: item[i].heading, //64 @@ -812,6 +894,7 @@ useLine: false, //鏄惁璇曠敤杈呭姪绾� success() { sgworld.Navigate.flyToObj(video); + loading.close(); }, }); that.robotvideoarrList.push(video); -- Gitblit v1.9.3