From 7fbdf6fb8d8b390ea0c8f3a2f06afa6be070cb83 Mon Sep 17 00:00:00 2001 From: yyy <2605810609@qq.com> Date: Mon, 14 Apr 2025 14:29:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E6=A0=BC=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mapPage/realTimeMap/editMap.vue | 27 ++++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/views/mapPage/realTimeMap/editMap.vue b/src/views/mapPage/realTimeMap/editMap.vue index 25094e4d..beb8474d 100644 --- a/src/views/mapPage/realTimeMap/editMap.vue +++ b/src/views/mapPage/realTimeMap/editMap.vue @@ -730,10 +730,10 @@ -
+ { const actualLocationX = disposeEventPoints(e).actualLocationX const actualLocationY = disposeEventPoints(e).actualLocationY - state.actualLocation.x = actualLocationX - state.actualLocation.y = actualLocationY + // state.actualLocation.x = actualLocationX + // state.actualLocation.y = actualLocationY //新增节点 if (toolbarSwitchType.value === 'drawNodes') { @@ -1526,7 +1526,11 @@ const state = reactive({ }) //网格的样式 const gradientBackground = computed(() => { - if (!state.isShowGrid) return {} + if (!state.isShowGrid) + return { + width: `${imgBgObj.width}px`, + height: `${imgBgObj.height}px` + } return { backgroundImage: ` @@ -1584,25 +1588,22 @@ const toolbarClick = async (item) => { state.showInputBox = false state.inputBoxValue = '' } + if ( toolbarSwitchType.value === 'generateLine' || toolbarSwitchType.value === 'createLineLibrary' || - toolbarSwitchType.value === 'createRegion' + toolbarSwitchType.value === 'createRegion' || + toolbarSwitchType.value === 'bulkDelete' ) { state.cursorStyle = 'crosshair' } else { state.cursorStyle = `auto` - } - - //工具切换 不适用框选的 要把框选的信息都删掉 - if ( - toolbarSwitchType.value !== 'createLineLibrary' && - toolbarSwitchType.value !== 'createRegion' - ) { + //工具切换 不适用框选的 要把框选的信息都删掉 state.drawSelectionAreaShow = false state.allDrawSelectionAreaBox = [] state.drawSelectionPointList = [] } + //非测距 if (toolbarSwitchType.value !== 'ranging') { state.measureDistancesPoints = [] // 清空存储点击的点位