forked from github/dataease
commit
a19c3548c7
@ -416,15 +416,36 @@ const trackMenu = computed(() => {
|
|||||||
if (!['multiplexing', 'viewDialog'].includes(showPosition.value)) {
|
if (!['multiplexing', 'viewDialog'].includes(showPosition.value)) {
|
||||||
let linkageCount = 0
|
let linkageCount = 0
|
||||||
let jumpCount = 0
|
let jumpCount = 0
|
||||||
chartData.value?.fields?.forEach(item => {
|
if (curView?.type?.includes('chart-mix')) {
|
||||||
const sourceInfo = view.value.id + '#' + item.id
|
chartData.value?.left?.fields?.forEach(item => {
|
||||||
if (nowPanelTrackInfo.value[sourceInfo]) {
|
const sourceInfo = view.value.id + '#' + item.id
|
||||||
linkageCount++
|
if (nowPanelTrackInfo.value[sourceInfo]) {
|
||||||
}
|
linkageCount++
|
||||||
if (nowPanelJumpInfo.value[sourceInfo]) {
|
}
|
||||||
jumpCount++
|
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]) {
|
||||||
|
linkageCount++
|
||||||
|
}
|
||||||
|
if (nowPanelJumpInfo.value[sourceInfo]) {
|
||||||
|
jumpCount++
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
jumpCount &&
|
jumpCount &&
|
||||||
view.value?.jumpActive &&
|
view.value?.jumpActive &&
|
||||||
(!mobileInPc.value || inMobile.value) &&
|
(!mobileInPc.value || inMobile.value) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user