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 @@ - - - - - - - - - - - - - - - - - - - - 图层关闭 - 图层关闭 - - - 直接展示 - 直接展示 - - - 碰撞检测 - 碰撞检测 - - - 抽稀图层 - 抽稀图层 - - - - - - - - - - - - - - - {{item.name}} - - - - - - - - - - - - - - - - - - - - - 图层抽稀 - - - - - - - 间隔: - - - 快速抽稀 - 局部抽稀 - 数据还原 - 保存 - 取消 - - - - - - - - - - - - - - - - - - - - - {{channel.gbDeviceId}} - {{channel.gbManufacture}} - {{channel.gbAddress == null?'未知': channel.gbAddress}} - - - 播放 - 编辑 - 位置 - - - - - - - - - - - - {{dragChannel.gbName}} ({{dragChannel.gbDeviceId}}) - 经度: - 纬度: - - - - - - - - - - - - - -