forked from github/dataease
fix(图表): 修复柱线组合图副轴不能设置联动的问题
This commit is contained in:
parent
46d87dbfc0
commit
7766d168b0
@ -518,9 +518,16 @@ const linkageFieldAdaptor = async data => {
|
|||||||
if (data.linkageFields && data.linkageFields.length === 0) {
|
if (data.linkageFields && data.linkageFields.length === 0) {
|
||||||
const curCheckAllAxisStr =
|
const curCheckAllAxisStr =
|
||||||
JSON.stringify(state.curLinkageViewInfo.xAxis) +
|
JSON.stringify(state.curLinkageViewInfo.xAxis) +
|
||||||
JSON.stringify(state.curLinkageViewInfo.xAxisExt)
|
JSON.stringify(state.curLinkageViewInfo.xAxisExt) +
|
||||||
|
(state.curLinkageViewInfo.type.includes('chart-mix')
|
||||||
|
? JSON.stringify(state.curLinkageViewInfo.extBubble)
|
||||||
|
: '')
|
||||||
const targetCheckAllAxisStr =
|
const targetCheckAllAxisStr =
|
||||||
JSON.stringify(targetChartDetails.xAxis) + JSON.stringify(targetChartDetails.xAxisExt)
|
JSON.stringify(targetChartDetails.xAxis) +
|
||||||
|
JSON.stringify(targetChartDetails.xAxisExt) +
|
||||||
|
(targetChartDetails.type.includes('chart-mix')
|
||||||
|
? JSON.stringify(targetChartDetails.extBubble)
|
||||||
|
: '')
|
||||||
state.sourceLinkageInfo.targetViewFields.forEach(item => {
|
state.sourceLinkageInfo.targetViewFields.forEach(item => {
|
||||||
if (
|
if (
|
||||||
curCheckAllAxisStr.includes(item.id) &&
|
curCheckAllAxisStr.includes(item.id) &&
|
||||||
@ -542,7 +549,10 @@ const sourceLinkageInfoFilter = computed(() => {
|
|||||||
if (state.sourceLinkageInfo.targetViewFields) {
|
if (state.sourceLinkageInfo.targetViewFields) {
|
||||||
const curCheckAllAxisStr =
|
const curCheckAllAxisStr =
|
||||||
JSON.stringify(state.curLinkageViewInfo.xAxis) +
|
JSON.stringify(state.curLinkageViewInfo.xAxis) +
|
||||||
JSON.stringify(state.curLinkageViewInfo.xAxisExt)
|
JSON.stringify(state.curLinkageViewInfo.xAxisExt) +
|
||||||
|
(state.curLinkageViewInfo.type.includes('chart-mix')
|
||||||
|
? JSON.stringify(state.curLinkageViewInfo.extBubble)
|
||||||
|
: '')
|
||||||
return state.sourceLinkageInfo.targetViewFields.filter(item =>
|
return state.sourceLinkageInfo.targetViewFields.filter(item =>
|
||||||
curCheckAllAxisStr.includes(item.id)
|
curCheckAllAxisStr.includes(item.id)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user