feat(仪表板): 跳转只是时间字段跳转并过滤联动

This commit is contained in:
wangjiahao 2024-06-19 17:27:36 +08:00
parent f9ed64a8ea
commit 7a9cc483ce
2 changed files with 6 additions and 2 deletions

View File

@ -846,9 +846,9 @@ export const dvMainStore = defineStore('dataVisualization', {
addViewTrackFilter(data) { addViewTrackFilter(data) {
const viewId = data.viewId const viewId = data.viewId
let trackInfo let trackInfo
// 维度日期类型转换
viewFieldTimeTrans(this.canvasViewDataInfo[viewId], data)
if (data.option === 'linkage') { if (data.option === 'linkage') {
// 维度日期类型转换
viewFieldTimeTrans(this.canvasViewDataInfo[viewId], data)
trackInfo = this.nowPanelTrackInfo trackInfo = this.nowPanelTrackInfo
} else { } else {
trackInfo = this.nowPanelJumpInfoTargetPanel trackInfo = this.nowPanelJumpInfoTargetPanel

View File

@ -44,6 +44,7 @@ import { Base64 } from 'js-base64'
import DeRichTextView from '@/custom-component/rich-text/DeRichTextView.vue' import DeRichTextView from '@/custom-component/rich-text/DeRichTextView.vue'
import ChartEmptyInfo from '@/views/chart/components/views/components/ChartEmptyInfo.vue' import ChartEmptyInfo from '@/views/chart/components/views/components/ChartEmptyInfo.vue'
import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapshot' import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapshot'
import { viewFieldTimeTrans } from '@/utils/viewUtils'
const { wsCache } = useCache() const { wsCache } = useCache()
const chartComponent = ref<any>() const chartComponent = ref<any>()
@ -143,6 +144,7 @@ const state = reactive({
whiteSpace: 'pre-wrap' whiteSpace: 'pre-wrap'
} as CSSProperties, } as CSSProperties,
drillFilters: [], drillFilters: [],
viewInfoData: null,
drillClickDimensionList: [] drillClickDimensionList: []
}) })
@ -385,6 +387,8 @@ const jumpClick = param => {
} }
} }
if (jumpInfo) { if (jumpInfo) {
//
viewFieldTimeTrans(dvMainStore.getViewDataDetails(param.viewId), param)
param.sourceDvId = dvInfo.value.id param.sourceDvId = dvInfo.value.id
param.sourceViewId = param.viewId param.sourceViewId = param.viewId
param.sourceFieldId = dimension.id param.sourceFieldId = dimension.id