forked from github/dataease
fix: 【嵌入式】-视图预览中无法展示数据大屏中组合的图表
This commit is contained in:
parent
df08a6eab8
commit
d90c8abcec
@ -29,10 +29,29 @@ onBeforeMount(() => {
|
||||
state.dvInfo = dvInfo
|
||||
state.curPreviewGap = curPreviewGap
|
||||
|
||||
viewInfo.value = canvasViewInfoPreview[window.DataEaseBi.chartId]
|
||||
config.value = ((canvasDataResult as unknown as Array<{ id: string }>) || []).find(
|
||||
ele => ele.id === window.DataEaseBi.chartId
|
||||
)
|
||||
viewInfo.value = canvasViewInfoPreview[window.DataEaseBi.chartId] = (
|
||||
(canvasDataResult as unknown as Array<{
|
||||
id: string
|
||||
component: string
|
||||
propValue: Array<{ id: string }>
|
||||
}>) || []
|
||||
).some(ele => {
|
||||
if (ele.id === window.DataEaseBi.chartId) {
|
||||
config.value = ele
|
||||
return true
|
||||
}
|
||||
|
||||
if (ele.component === 'Group') {
|
||||
return (ele.propValue || []).some(itx => {
|
||||
if (itx.id === window.DataEaseBi.chartId) {
|
||||
config.value = itx
|
||||
return true
|
||||
}
|
||||
return false
|
||||
})
|
||||
}
|
||||
return false
|
||||
})
|
||||
}
|
||||
)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user