From 5df6240f6cd274e698d1e6358443364d543c126c Mon Sep 17 00:00:00 2001 From: Jin Lei <jinlei_182@163.com> Date: 星期六, 23 十二月 2023 10:23:27 +0800 Subject: [PATCH] [信令]添加信令相关功能 --- src/components/menu/bottom-menu.vue | 88 ++++++++++++++----------------------------- 1 files changed, 29 insertions(+), 59 deletions(-) diff --git a/src/components/menu/bottom-menu.vue b/src/components/menu/bottom-menu.vue index f721741..76cb04c 100644 --- a/src/components/menu/bottom-menu.vue +++ b/src/components/menu/bottom-menu.vue @@ -90,6 +90,8 @@ </el-form-item> </el-form> </div> + + </div> </template> @@ -294,7 +296,9 @@ import axios from "axios"; export default { - components: {}, + components: { + + }, name: "bottom-menu", data() { return { @@ -303,6 +307,7 @@ isShowSPRH: true, csbjShow: false, jxmxShow: false, + romanOption: [ { name: "鏍稿績鍖�" }, { name: "鏅缁垮湴" }, @@ -564,17 +569,15 @@ "http://10.9.2.29:8080/#/login?token=1ed14c5157acb8088efe65bc93a032c3" ); }, - switchMenu(id){ - if(id!=1) - { + switchMenu(id) { + + if (id != 1) { this.setViewer1Show(false); } - if(id!=3) - { + if (id != 3) { this.closeSjxl(); } - if(id!=4) - { + if (id != 4) { this.closeSpjk(); } }, @@ -584,52 +587,17 @@ shoujixinling() { this.switchMenu(3); if (this.isShowSjxl) { - - const loading = this.$loading({ - lock: true, - text: "鎵嬫満淇′护鏁版嵁鍔犺浇涓紝璇风◢鍚�", - spinner: "el-icon-loading", - background: "rgba(0, 0, 0, 0.7)", - }); - setTimeout(() => { - loading.close(); - }, 1500); this.isShowSjxl = false; - let heatMapUrl = URLInCode.heatMapUrl; - sgworld.Core.getJSON(heatMapUrl, (data) => { - let res = []; - data.features.forEach((item) => { - let obj = { - x: item.properties["center_x"], - y: item.properties["center_y"], - value: item.properties["sd_total"], - radius: 50, - }; - res.push(obj); - }); - // //鍒涘缓鐑姏鍥� - heatMapItem = sgworld.Creator.addHeatMap("鐑姏鍥�", { - type: "Heatmap", // 鐑姏鍥剧被鍨嬨�怘eatmap/HeatmapGL銆戯紙鍙�夛級 - sourceData: res, - radius: 7, - gradient: { - ".3": "blue", - ".5": "green", - ".7": "yellow", - ".95": "red", - }, - tooltip: true, // tooltip鏄剧ず鏁板�� - }); - }); + this.$parent.signallingShow = true; } else { this.closeSjxl(); } }, closeSjxl() { - if (heatMapItem) { + this.isShowSjxl = true; - heatMapItem.deleteObject(); - } + this.$parent.signallingShow = false; + }, // historyHandle() { // this.$store.commit("showHistory", true); @@ -704,18 +672,20 @@ } }, 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(); + if (!this.isShowSPJK) { + 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(); + } } }, // 鍒嗗眰鍒嗘埛 -- Gitblit v1.9.3