forked from github/dataease
Merge pull request #10185 from dataease/pr@dev-v2_st
fix(数据集): 文本筛选设置了筛选此时更换数据集提示异常
This commit is contained in:
commit
58cdbe26c1
@ -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))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user