From d5431e6b00cfc9a1a57b1d67d3b1f5956eca0132 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期四, 02 三月 2023 08:41:57 +0800 Subject: [PATCH] 数据上传添加进度条,样式管理页面修改,属性查询,空间查询页面优化 --- src/views/Synthesis/LeftMenu.vue | 39 ++++++++++++++++++++++++--------------- 1 files changed, 24 insertions(+), 15 deletions(-) diff --git a/src/views/Synthesis/LeftMenu.vue b/src/views/Synthesis/LeftMenu.vue index 30b063b..baf9642 100644 --- a/src/views/Synthesis/LeftMenu.vue +++ b/src/views/Synthesis/LeftMenu.vue @@ -15,6 +15,7 @@ <mapinfo ref="mapinfo" /> <maplayer ref="maplayer" /> <queryinfo ref="queryinfo" /> + <terrainDig ref="terrainDig" /> <input type="file" accept=".kml" @@ -39,6 +40,7 @@ import mapinfo from "../Tools/mapinfo.vue"; import maplayer from "../Tools/maplayer.vue"; import queryinfo from "../Tools/queryinfo.vue"; +import terrainDig from "../Tools/terrainDig.vue"; import $ from "jquery"; import { getToken } from "@/utils/auth"; import ImageWMS from "ol/source/ImageWMS"; @@ -58,7 +60,7 @@ import { geometry } from "@turf/turf"; export default { - components: { mapinfo, maplayer, queryinfo }, + components: { mapinfo, maplayer, queryinfo, terrainDig }, data() { return { showTwoMenuFlag: false, @@ -1342,20 +1344,27 @@ break; case "d11": //鍦板舰寮�鎸� - if (window.Excavation) { - window.Excavation.drawHandler && - window.Excavation.drawHandler.destroy(); - Viewer._container.style.cursor = "default"; - window.Excavation.tooltip && window.Excavation.tooltip.show(false); - window.Excavation.clear(); - window.Excavation = null; - } else { - window.Excavation = sgworld.Analysis.TerrainExcavation( - 10, - {}, - function () { } - ); - } + this.$refs && + this.$refs.terrainDig && + this.$refs.terrainDig.open("绠¢亾绌洪棿鍒嗘瀽", null, { + close: () => { + + }, + }); + // if (window.Excavation) { + // window.Excavation.drawHandler && + // window.Excavation.drawHandler.destroy(); + // Viewer._container.style.cursor = "default"; + // window.Excavation.tooltip && window.Excavation.tooltip.show(false); + // window.Excavation.clear(); + // window.Excavation = null; + // } else { + // window.Excavation = sgworld.Analysis.TerrainExcavation( + // 10, + // {}, + // function () { } + // ); + // } break; case "d12": //閫氳鍒嗘瀽 -- Gitblit v1.9.3