13
0
forked from github/dataease

perf(仪表板): 优化视图插件加载机制

This commit is contained in:
fit2cloud-chenyw 2024-06-18 15:48:32 +08:00
parent ef8705ac52
commit 082b297361
2 changed files with 7 additions and 2 deletions
core/core-frontend/src/views/chart/components

View File

@ -761,7 +761,9 @@ const calcData = (view, resetDrill = false, updateQuery = '') => {
}) })
} }
} }
const updateChartDataTest = arg => {
updateChartData(arg)
}
const updateChartData = view => { const updateChartData = view => {
curComponent.value['state'] = 'ready' curComponent.value['state'] = 'ready'
calcData(view, true, 'updateQuery') calcData(view, true, 'updateQuery')
@ -1608,7 +1610,7 @@ const deleteChartFieldItem = id => {
:dimension="state.dimension" :dimension="state.dimension"
:quota="state.quota" :quota="state.quota"
:themes="themes" :themes="themes"
@update-chart-data="updateChartData" @update-chart-data-test="updateChartDataTest"
/> />
<el-tabs <el-tabs
v-else v-else

View File

@ -603,6 +603,9 @@ const chartAreaShow = computed(() => {
if (view.value.type === 'rich-text') { if (view.value.type === 'rich-text') {
return true return true
} }
if (view.value?.plugin?.isPlugin) {
return true
}
if (view.value['dataFrom'] === 'template') { if (view.value['dataFrom'] === 'template') {
return true return true
} }