Merge pull request #12931 from dataease/pr@dev-v2@fix_chart_plugin_fields
fix(图表): 修复插件不显示维度和指标
This commit is contained in:
commit
38f7bb052d
@ -583,6 +583,10 @@ const checkFieldIsAllowEmpty = (allField?) => {
|
|||||||
showEmpty.value = false
|
showEmpty.value = false
|
||||||
if (view.value?.render && view.value?.type) {
|
if (view.value?.render && view.value?.type) {
|
||||||
const chartView = chartViewManager.getChartView(view.value.render, view.value.type)
|
const chartView = chartViewManager.getChartView(view.value.render, view.value.type)
|
||||||
|
// 插件
|
||||||
|
if (!chartView) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const map = parseJson(view.value.customAttr).map
|
const map = parseJson(view.value.customAttr).map
|
||||||
if (['bubble-map', 'map'].includes(view.value?.type) && !map?.id) {
|
if (['bubble-map', 'map'].includes(view.value?.type) && !map?.id) {
|
||||||
showEmpty.value = true
|
showEmpty.value = true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user