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) {
|
addViewTrackFilter(data) {
|
||||||
const viewId = data.viewId
|
const viewId = data.viewId
|
||||||
let trackInfo
|
let trackInfo
|
||||||
|
if (data.option === 'linkage') {
|
||||||
// 维度日期类型转换
|
// 维度日期类型转换
|
||||||
viewFieldTimeTrans(this.canvasViewDataInfo[viewId], data)
|
viewFieldTimeTrans(this.canvasViewDataInfo[viewId], data)
|
||||||
if (data.option === 'linkage') {
|
|
||||||
trackInfo = this.nowPanelTrackInfo
|
trackInfo = this.nowPanelTrackInfo
|
||||||
} else {
|
} else {
|
||||||
trackInfo = this.nowPanelJumpInfoTargetPanel
|
trackInfo = this.nowPanelJumpInfoTargetPanel
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user