fix(数据大屏): 文本组件和查询组件进行组合后拖入tab组件-查询未返回符合数据

This commit is contained in:
dataeaseShu 2025-01-08 10:06:15 +08:00 committed by xuwei-fit2cloud
parent 4fb48de19f
commit 0911a58bbe

View File

@ -164,6 +164,17 @@ export const useFilter = (curComponentId: string, firstLoad = false) => {
if (ele.innerType === 'DeTabs') { if (ele.innerType === 'DeTabs') {
ele.propValue.forEach(itx => { ele.propValue.forEach(itx => {
itx.componentData.forEach(v => {
if (v.component === 'Group') {
const listGroup = v.propValue.filter(
item =>
item.innerType === 'VQuery' &&
(popupAvailable || (!popupAvailable && v.category !== 'hidden'))
)
searchQuery(listGroup, filter, curComponentId, firstLoad)
}
})
const arr = itx.componentData.filter(item => item.innerType === 'VQuery') const arr = itx.componentData.filter(item => item.innerType === 'VQuery')
searchQuery(arr, filter, curComponentId, firstLoad) searchQuery(arr, filter, curComponentId, firstLoad)
}) })