mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
fix(仪表板): 插件配置过滤组件+默认值后,初次渲染不会做过滤 #15955
This commit is contained in:
committed by
xuwei-fit2cloud
parent
41c6881cc8
commit
146bab0f36
@@ -706,10 +706,19 @@ const changeChartType = () => {
|
||||
const changeDataset = () => {
|
||||
checkFieldIsAllowEmpty()
|
||||
}
|
||||
|
||||
const loadPlugin = ref(false)
|
||||
|
||||
onMounted(() => {
|
||||
if (!view.value.isPlugin) {
|
||||
state.drillClickDimensionList = view.value?.chartExtRequest?.drill ?? []
|
||||
queryData(!showPosition.value.includes('viewDialog'))
|
||||
} else {
|
||||
const searched = dvMainStore.firstLoadMap.includes(element.value.id)
|
||||
const queryFilter = filter(!searched)
|
||||
view.value['chartExtRequest'] = queryFilter
|
||||
chartExtRequest.value = queryFilter
|
||||
loadPlugin.value = true
|
||||
}
|
||||
if (!listenerEnable.value) {
|
||||
return
|
||||
@@ -1146,7 +1155,7 @@ const clearG2Tooltip = () => {
|
||||
<!--这里去渲染不同图库的图表-->
|
||||
<div v-if="allEmptyCheck || (chartAreaShow && !showEmpty)" style="flex: 1; overflow: hidden">
|
||||
<plugin-component
|
||||
v-if="view.plugin?.isPlugin"
|
||||
v-if="view.plugin?.isPlugin && loadPlugin"
|
||||
:jsname="view.plugin.staticMap['index']"
|
||||
:scale="scale"
|
||||
:dynamic-area-id="dynamicAreaId"
|
||||
|
||||
Reference in New Issue
Block a user