From ad3d4e5b4b4430246c2766854232694e7a7b4501 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 13 Dec 2023 11:56:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E3=80=90=E6=A8=A1=E6=9D=BF=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E3=80=91=E6=8C=89=E9=92=AE=20=E6=9C=AA=E5=81=9A?= =?UTF-8?q?=E8=87=AA=E9=80=82=E5=BA=94=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/template-market/component/TemplateMarketV2Item.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/template-market/component/TemplateMarketV2Item.vue b/core/core-frontend/src/views/template-market/component/TemplateMarketV2Item.vue index 5492535413..9de51114a8 100644 --- a/core/core-frontend/src/views/template-market/component/TemplateMarketV2Item.vue +++ b/core/core-frontend/src/views/template-market/component/TemplateMarketV2Item.vue @@ -14,10 +14,10 @@ {{ template.title }} - {{ + {{ t('visualization.preview') }} - {{ + {{ t('visualization.apply') }} From 9615ef83ccde4b4fa94f929a7a35e45f62e7e414 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 13 Dec 2023 14:59:57 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E5=8A=A8=E6=80=81=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom-component/v-query/Component.vue | 4 + .../v-query/DynamicTimeRange.vue | 151 +++++++++++ .../v-query/QueryConditionConfiguration.vue | 236 ++++++++++++++++-- .../custom-component/v-query/time-format.ts | 4 +- core/core-frontend/src/hooks/web/useFilter.ts | 46 +++- 5 files changed, 407 insertions(+), 34 deletions(-) create mode 100644 core/core-frontend/src/custom-component/v-query/DynamicTimeRange.vue 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 bfc73664d0..fbcc7426e1 100644 --- a/core/core-frontend/src/custom-component/v-query/Component.vue +++ b/core/core-frontend/src/custom-component/v-query/Component.vue @@ -211,6 +211,10 @@ const infoFormat = (obj: ComponentInfo) => { relativeToCurrentType: 'year', around: 'f', arbitraryTime: new Date(), + timeNumRange: 0, + relativeToCurrentTypeRange: 'year', + aroundRange: 'f', + arbitraryTimeRange: new Date(), auto: false, defaultValue: undefined, selectValue: undefined, diff --git a/core/core-frontend/src/custom-component/v-query/DynamicTimeRange.vue b/core/core-frontend/src/custom-component/v-query/DynamicTimeRange.vue new file mode 100644 index 0000000000..9f2c15ed32 --- /dev/null +++ b/core/core-frontend/src/custom-component/v-query/DynamicTimeRange.vue @@ -0,0 +1,151 @@ + + + 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 ea1af84f5e..c28336ce94 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -1,6 +1,7 @@