Merge pull request #10293 from ulleo/dev-v2

fix(图表): 修复柱线组合图联动跳转失效的问题
This commit is contained in:
ulleo 2024-06-14 15:40:54 +08:00 committed by GitHub
commit a19c3548c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -416,6 +416,26 @@ const trackMenu = computed(() => {
if (!['multiplexing', 'viewDialog'].includes(showPosition.value)) {
let linkageCount = 0
let jumpCount = 0
if (curView?.type?.includes('chart-mix')) {
chartData.value?.left?.fields?.forEach(item => {
const sourceInfo = view.value.id + '#' + item.id
if (nowPanelTrackInfo.value[sourceInfo]) {
linkageCount++
}
if (nowPanelJumpInfo.value[sourceInfo]) {
jumpCount++
}
})
chartData.value?.right?.fields?.forEach(item => {
const sourceInfo = view.value.id + '#' + item.id
if (nowPanelTrackInfo.value[sourceInfo]) {
linkageCount++
}
if (nowPanelJumpInfo.value[sourceInfo]) {
jumpCount++
}
})
} else {
chartData.value?.fields?.forEach(item => {
const sourceInfo = view.value.id + '#' + item.id
if (nowPanelTrackInfo.value[sourceInfo]) {
@ -425,6 +445,7 @@ const trackMenu = computed(() => {
jumpCount++
}
})
}
jumpCount &&
view.value?.jumpActive &&
(!mobileInPc.value || inMobile.value) &&