forked from github/dataease
perf(仪表板): 优化视图插件加载机制
This commit is contained in:
parent
ef8705ac52
commit
082b297361
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user