From 512a57a7d159bd8776d651bb80be821898e1381d Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Tue, 11 Nov 2025 15:18:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=BD=E7=A8=80=E5=9B=BE?= =?UTF-8?q?=E5=B1=82=E9=A2=84=E8=A7=88=E5=85=B3=E9=97=AD=E5=90=8E=E6=89=93?= =?UTF-8?q?=E5=BC=80=E7=9A=84=E5=9B=BE=E5=B1=82=E6=9C=AA=E6=81=A2=E5=A4=8D?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/map/index.vue | 18 +- web/src/views/map/index2.vue | 989 ----------------------------------- 2 files changed, 10 insertions(+), 997 deletions(-) delete mode 100755 web/src/views/map/index2.vue diff --git a/web/src/views/map/index.vue b/web/src/views/map/index.vue index 3dddd8732..d56a0f78b 100755 --- a/web/src/views/map/index.vue +++ b/web/src/views/map/index.vue @@ -168,7 +168,7 @@ export default { drawThinId: null, drawThinLayer: null, saveDrawThinLoading: false, - layerType: 0, + layerType: 0 } }, created() { @@ -304,9 +304,6 @@ export default { }) }, changeLayerType: function (index) { - if (this.layerType === index) { - return - } this.layerType = index if (index === 0) { this.$refs.mapComponent.removeLayer(channelTileLayer) @@ -446,8 +443,8 @@ export default { }, showDrawThinBox: function(show){ this.showDrawThin = show - setTimeout(() => { - if (!show) { + if (!show) { + setTimeout(() => { // 关闭抽稀预览 if (this.drawThinId !== null) { // 发送消息 清空抽稀结果 @@ -458,8 +455,13 @@ export default { this.$refs.mapComponent.removeLayer(this.drawThinLayer) this.drawThinLayer = null } - } - }, 1) + // 展示图层 + if (this.layerType > 0) { + this.changeLayerType(this.layerType) + } + }, 1) + } + }, quicklyDrawThin: function (){ if (channelLayer) { diff --git a/web/src/views/map/index2.vue b/web/src/views/map/index2.vue deleted file mode 100755 index af57d4f85..000000000 --- a/web/src/views/map/index2.vue +++ /dev/null @@ -1,989 +0,0 @@ - - - - -