From 654a1a093deb9066d0428e94b2c27508a3e99026 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 13 Nov 2024 14:51:04 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):?= =?UTF-8?q?=20=E5=A4=A7=E5=B1=8F=E8=BE=85=E5=8A=A9=E7=BD=91=E6=A0=BC?= =?UTF-8?q?=E4=B8=8E=E5=88=BB=E5=BA=A6=E5=B0=BA=E4=BF=9D=E6=8C=81=E7=BC=A9?= =?UTF-8?q?=E6=94=BE=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/data-visualization/DeGrid.vue | 16 ++--- .../data-visualization/DeGridScreen.vue | 71 +++++++++++++++++++ .../data-visualization/canvas/CanvasCore.vue | 20 +++++- .../data-visualization/canvas/Grid.vue | 37 ---------- .../src/custom-component/common/DeRuler.vue | 13 +++- .../src/views/data-visualization/index.vue | 15 +++- 6 files changed, 122 insertions(+), 50 deletions(-) create mode 100644 core/core-frontend/src/components/data-visualization/DeGridScreen.vue delete mode 100644 core/core-frontend/src/components/data-visualization/canvas/Grid.vue diff --git a/core/core-frontend/src/components/data-visualization/DeGrid.vue b/core/core-frontend/src/components/data-visualization/DeGrid.vue index b4673faddc..4c108e7d5e 100644 --- a/core/core-frontend/src/components/data-visualization/DeGrid.vue +++ b/core/core-frontend/src/components/data-visualization/DeGrid.vue @@ -7,7 +7,12 @@ :height="smallGridH" patternUnits="userSpaceOnUse" > - + - + - + diff --git a/core/core-frontend/src/components/data-visualization/DeGridScreen.vue b/core/core-frontend/src/components/data-visualization/DeGridScreen.vue new file mode 100644 index 0000000000..286489da37 --- /dev/null +++ b/core/core-frontend/src/components/data-visualization/DeGridScreen.vue @@ -0,0 +1,71 @@ + + + + + diff --git a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue index fe1e1ad056..063dd6c8d8 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue @@ -46,6 +46,7 @@ import { activeWatermarkCheckUser } from '@/components/watermark/watermark' import PopArea from '@/custom-component/pop-area/Component.vue' import DatasetParamsComponent from '@/components/visualization/DatasetParamsComponent.vue' import DeGrid from '@/components/data-visualization/DeGrid.vue' +import DeGridScreen from '@/components/data-visualization/DeGridScreen.vue' const snapshotStore = snapshotStoreWithOut() const dvMainStore = dvMainStoreWithOut() @@ -1422,7 +1423,19 @@ const contextMenuShow = computed(() => { const markLineShow = computed(() => isMainCanvas(canvasId.value)) const showGrid = computed(() => { - return Boolean(canvasStyleData.value.dashboard.showGrid) && isMainCanvas(canvasId.value) + return ( + Boolean(canvasStyleData.value.dashboard.showGrid) && + isMainCanvas(canvasId.value) && + isDashboard() + ) +}) + +const showGridScreen = computed(() => { + return ( + Boolean(canvasStyleData.value.dashboard.showGrid) && + isMainCanvas(canvasId.value) && + !isDashboard() + ) }) // 批量设置 @@ -1557,6 +1570,11 @@ defineExpose({ > + - - - - - - - - - - - - - - - diff --git a/core/core-frontend/src/custom-component/common/DeRuler.vue b/core/core-frontend/src/custom-component/common/DeRuler.vue index 0022151e0f..6b1b074854 100644 --- a/core/core-frontend/src/custom-component/common/DeRuler.vue +++ b/core/core-frontend/src/custom-component/common/DeRuler.vue @@ -1,5 +1,5 @@