forked from github/dataease
feat(仪表板): 跳转只是时间字段跳转并过滤联动
This commit is contained in:
parent
f9ed64a8ea
commit
7a9cc483ce
@ -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
|
||||
|
@ -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<any>()
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user