Merge pull request #9262 from dataease/pr@dev-v2@fix_tooltip_multi_series_del

fix(图表): 多序列提示删除失败
This commit is contained in:
wisonic-s 2024-04-22 23:17:35 +08:00 committed by GitHub
commit 2b245ebbff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -287,10 +287,8 @@ const addAxis = (form: AxisEditForm) => {
}
}
})
state.tooltipForm.seriesTooltipFormatter =
state.tooltipForm.seriesTooltipFormatter.concat(dupAxis)
state.tooltipForm.seriesTooltipFormatter = partition(
state.tooltipForm.seriesTooltipFormatter,
state.tooltipForm.seriesTooltipFormatter.concat(dupAxis),
ele => quotaAxis.value.findIndex(item => item.id === ele.id) !== -1
).flat()
}
@ -321,8 +319,8 @@ const removeAxis = (form: AxisEditForm) => {
if (axisMap[ele.seriesId]) {
//
ele.show = false
ele.seriesId = ele.id
ele.summary = axisMap[ele.seriesId].summary
ele.seriesId = ele.id
}
})
state.tooltipForm.seriesTooltipFormatter = partition(