Merge pull request #10346 from dataease/pr@dev-v2@perf_plugin_view

perf(仪表板): 优化视图插件加载机制
This commit is contained in:
fit2cloud-chenyw 2024-06-18 15:49:38 +08:00 committed by GitHub
commit 341da167f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

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

View File

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