diff --git a/core/core-frontend/src/components/data-visualization/RealTimeListTree.vue b/core/core-frontend/src/components/data-visualization/RealTimeListTree.vue index 9d8ade415b..bcc8e0a910 100644 --- a/core/core-frontend/src/components/data-visualization/RealTimeListTree.vue +++ b/core/core-frontend/src/components/data-visualization/RealTimeListTree.vue @@ -38,7 +38,8 @@ const areaDataPush = component => { !component.isLock && component.isShow && component.canvasId === 'canvas-main' && - component.category !== 'hidden' + component.category !== 'hidden' && + component.component !== 'GroupArea' ) { areaData.value.components.push(component) } @@ -73,7 +74,8 @@ const shiftDataPush = curClickIndex => { !areaDataIdArray.includes(component.id) && !component.isLock && component.isShow && - component.category !== 'hidden' + component.category !== 'hidden' && + component.component !== 'GroupArea' ) areaData.value.components.push(...shiftAreaComponents) dvMainStore.setCurComponent({ component: null, index: null }) diff --git a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue index 6387da7b24..e31e79a85b 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue @@ -408,7 +408,13 @@ const handleBoardMouseDownOnShape = e => { } const areaDataPush = component => { - if (component && !component.isLock && component.isShow && component.canvasId === 'canvas-main') { + if ( + component && + !component.isLock && + component.isShow && + component.canvasId === 'canvas-main' && + component.component !== 'GroupArea' + ) { areaData.value.components.push(component) } } diff --git a/core/core-frontend/src/views/data-visualization/index.vue b/core/core-frontend/src/views/data-visualization/index.vue index a4cd931d35..5f102a55b1 100644 --- a/core/core-frontend/src/views/data-visualization/index.vue +++ b/core/core-frontend/src/views/data-visualization/index.vue @@ -169,7 +169,6 @@ const handleDragOver = e => { } const handleMouseDown = e => { - console.log('====handleMouseDown===' + e) // e.stopPropagation() dvMainStore.setClickComponentStatus(false) // 点击画布的空区域 提前清空curComponent 防止右击菜单内容抖动