fix(数据集): 文本筛选设置了筛选此时更换数据集提示异常

This commit is contained in:
dataeaseShu 2024-06-11 15:27:25 +08:00
parent 55e1dd4405
commit ebb036c7df

View File

@ -225,6 +225,19 @@ const updateQueryCriteria = () => {
})
ele.checkedFields = checkedFields
ele.checkedFieldsMap = checkedFieldsMap
} else {
const checkedFields = []
datasetFieldList.value.forEach(itx => {
if (itx.tableId === ele.dataset.id) {
checkedFields.push(itx.id)
}
})
ele.checkedFields.forEach(itx => {
if (!checkedFields.includes(itx)) {
ele.checkedFieldsMap[itx] = ''
}
})
ele.checkedFields = ele.checkedFields.filter(itx => checkedFields.includes(itx))
}
})
}