From ebb036c7dfadc62cae59d4453beb56d37cb90cf5 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 11 Jun 2024 15:27:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E9=9B=86):=20=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E7=AD=9B=E9=80=89=E8=AE=BE=E7=BD=AE=E4=BA=86=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E6=AD=A4=E6=97=B6=E6=9B=B4=E6=8D=A2=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=9B=86=E6=8F=90=E7=A4=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/v-query/Component.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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)) } }) }