Merge pull request #10185 from dataease/pr@dev-v2_st

fix(数据集): 文本筛选设置了筛选此时更换数据集提示异常
This commit is contained in:
dataeaseShu 2024-06-11 15:29:04 +08:00 committed by GitHub
commit 58cdbe26c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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))
}
})
}