From 714868c14befb68507f0dd835b020800b41a1b3c Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 30 Jan 2024 16:29:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E7=B2=92=E5=BA=A6=E5=88=87=E6=8D=A2=E6=97=B6?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E6=97=B6=E9=97=B4=E8=87=AA=E5=8A=A8=E5=88=87?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v-query/QueryConditionConfiguration.vue | 6 ++++++ 1 file changed, 6 insertions(+) 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 237d3e0546..7cef07f7a1 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -688,6 +688,12 @@ const timeGranularityMultipleChange = (val: string) => { ) { curComponent.value.relativeToCurrentType = 'year' } + if ( + ['yearrange', 'monthrange', 'datetimerange'].indexOf(val) < + ['year', 'month', 'date'].indexOf(curComponent.value.relativeToCurrentTypeRange) + ) { + curComponent.value.relativeToCurrentTypeRange = 'year' + } } const aroundList = [ {