From 93e8d47afa0c282b35edd793d071fe74623d84f7 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 23 Sep 2024 11:21:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6=E5=9C=A8=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=98=AF=E5=B9=B4=E6=9C=88=E6=97=A5=E7=9A=84=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8B=EF=BC=8C=E6=97=B6=E9=97=B4=E7=B2=92=E5=BA=A6=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E9=80=89=E6=8B=A9=E5=B9=B4=E6=9C=88=E6=88=96=E8=80=85?= =?UTF-8?q?=E5=B9=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v-query/QueryConditionConfiguration.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 5374899e90..051d81047b 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -415,7 +415,16 @@ const timeParameterList = computed(() => { const [year, y] = curComponent.value.parameters?.filter( ele => ele.deType === 1 && !!ele.variableName )[0].type - return timeList.filter(ele => ele.value === (typeTimeMap[y] || typeTimeMap[year])) + let stopPush = false + return timeList.reduce((pre, ele) => { + if (ele.value === (typeTimeMap[y] || typeTimeMap[year])) { + stopPush = true + pre.push(ele) + } else if (!stopPush) { + pre.push(ele) + } + return pre + }, []) }) const cancelClick = () => {