From 7a9cc483cefc45c47d789499c7f71cd4c344b076 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 19 Jun 2024 17:27:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=8F=AA=E6=98=AF=E6=97=B6=E9=97=B4=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=B9=B6=E8=BF=87=E6=BB=A4=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/data-visualization/dvMain.ts | 4 ++-- core/core-frontend/src/views/chart/components/views/index.vue | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts index 6b223fbcd0..8a8a843146 100644 --- a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts +++ b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts @@ -846,9 +846,9 @@ export const dvMainStore = defineStore('dataVisualization', { addViewTrackFilter(data) { const viewId = data.viewId let trackInfo - // 维度日期类型转换 - viewFieldTimeTrans(this.canvasViewDataInfo[viewId], data) if (data.option === 'linkage') { + // 维度日期类型转换 + viewFieldTimeTrans(this.canvasViewDataInfo[viewId], data) trackInfo = this.nowPanelTrackInfo } else { trackInfo = this.nowPanelJumpInfoTargetPanel diff --git a/core/core-frontend/src/views/chart/components/views/index.vue b/core/core-frontend/src/views/chart/components/views/index.vue index 26e90401be..3dd5a3995d 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -44,6 +44,7 @@ import { Base64 } from 'js-base64' import DeRichTextView from '@/custom-component/rich-text/DeRichTextView.vue' import ChartEmptyInfo from '@/views/chart/components/views/components/ChartEmptyInfo.vue' import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapshot' +import { viewFieldTimeTrans } from '@/utils/viewUtils' const { wsCache } = useCache() const chartComponent = ref() @@ -143,6 +144,7 @@ const state = reactive({ whiteSpace: 'pre-wrap' } as CSSProperties, drillFilters: [], + viewInfoData: null, drillClickDimensionList: [] }) @@ -385,6 +387,8 @@ const jumpClick = param => { } } if (jumpInfo) { + // 维度日期类型转换 + viewFieldTimeTrans(dvMainStore.getViewDataDetails(param.viewId), param) param.sourceDvId = dvInfo.value.id param.sourceViewId = param.viewId param.sourceFieldId = dimension.id