fix(数据大屏、仪表板): 修复即使关闭了图表加载提示,仍然会有loading遮罩层 #16247

This commit is contained in:
wangjiahao
2025-06-16 16:16:02 +08:00
parent 4d76a34ae3
commit 5d28c26fa9

View File

@@ -63,6 +63,7 @@ const dvMainStore = dvMainStoreWithOut()
const { emitter } = useEmitt()
const dePreviewPopDialogRef = ref(null)
let innerRefreshTimer = null
let innerSearchCount = 0
const appStore = useAppStoreWithOut()
const appearanceStore = useAppearanceStoreWithOut()
const isDataEaseBi = computed(() => appStore.getIsDataEaseBi)
@@ -240,6 +241,7 @@ const buildInnerRefreshTimer = (
innerRefreshTimer = setInterval(() => {
clearViewLinkage()
queryData()
innerSearchCount++
}, timerRefreshTime)
}
}
@@ -852,7 +854,11 @@ onMounted(() => {
// 1.开启仪表板刷新 2.首次加载searchCount =0 3.正在请求数据 则显示加载状态
const loadingFlag = computed(() => {
return (canvasStyleData.value.refreshViewLoading || searchCount.value === 0) && loading.value
return (
(canvasStyleData.value.refreshViewLoading ||
(searchCount.value === 0 && innerSearchCount === 0)) &&
loading.value
)
})
const chartAreaShow = computed(() => {