From 82f940ea8b1484f717772288f6f817099a49fea9 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 30 Oct 2023 14:05:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=8C=96=E8=8E=B7=E5=8F=96=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=B8=8D=E6=98=AF=E6=9C=80=E6=96=B0=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v-query/QueryConditionConfiguration.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue index f00e9b5cc4..6bdd4cfe25 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -364,6 +364,16 @@ const init = (queryId: string) => { const datasetMapKeyList = Object.keys(datasetMap) + getSqlParams([ + ...new Set( + datasetFieldList.value + .map(ele => ele.tableId) + .filter(ele => !datasetMapKeyList.includes(ele) && ele) + ) + ]).then(res => { + parameters.value = res || [] + }) + if (datasetFieldIdList.every(ele => datasetMapKeyList.includes(ele))) { fields.value = datasetFieldList.value .map(ele => { @@ -400,15 +410,6 @@ const init = (queryId: string) => { .finally(() => { handleCheckedFieldsChange(curComponent.value.checkedFields) }) - getSqlParams([ - ...new Set( - datasetFieldList.value - .map(ele => ele.tableId) - .filter(ele => !datasetMapKeyList.includes(ele) && ele) - ) - ]).then(res => { - parameters.value = res || [] - }) } const weightlessness = () => {