diff --git a/core/core-frontend/src/custom-component/v-query/Component.vue b/core/core-frontend/src/custom-component/v-query/Component.vue index bb2a635898..e660c25c6d 100644 --- a/core/core-frontend/src/custom-component/v-query/Component.vue +++ b/core/core-frontend/src/custom-component/v-query/Component.vue @@ -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)) } }) }