From 0a2a3d2a9bea1d617a7cb24231b136666bb205d8 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 13 Oct 2025 13:34:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(xpack):=20=E7=AD=9B=E9=80=89=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=97=B6=EF=BC=8C=E6=94=AF=E6=8C=81=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E7=B2=92=E5=BA=A6=EF=BC=8C=E7=84=B6=E5=90=8E?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E6=8E=A7=E4=BB=B6=E7=9A=84=E5=BD=A2=E5=BC=8F?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../filter/auth-tree-chart/AuthTree.vue | 1 + .../filter/auth-tree-chart/FilterFiled.vue | 27 +++++++++++++++++++ .../editor/filter/auth-tree-chart/RowAuth.vue | 6 +++++ .../editor/filter/auth-tree/AuthTree.vue | 1 + .../editor/filter/auth-tree/RowAuth.vue | 8 ++++-- .../data/dataset/auth-tree/AuthTree.vue | 1 + .../data/dataset/auth-tree/FilterFiled.vue | 1 + .../data/dataset/auth-tree/RowAuth.vue | 8 ++++-- 8 files changed, 49 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/editor/filter/auth-tree-chart/AuthTree.vue b/core/core-frontend/src/views/chart/components/editor/filter/auth-tree-chart/AuthTree.vue index aef709042f..b7effd3efe 100644 --- a/core/core-frontend/src/views/chart/components/editor/filter/auth-tree-chart/AuthTree.vue +++ b/core/core-frontend/src/views/chart/components/editor/filter/auth-tree-chart/AuthTree.vue @@ -72,6 +72,7 @@ const add = (type, child, logic) => { name: '', filterTypeTime: 'dateValue', timeValue: '', + timeType: 'year', dynamicTimeSetting: {}, deType: '' } diff --git a/core/core-frontend/src/views/chart/components/editor/filter/auth-tree-chart/FilterFiled.vue b/core/core-frontend/src/views/chart/components/editor/filter/auth-tree-chart/FilterFiled.vue index e0e97e9251..a632b51d00 100644 --- a/core/core-frontend/src/views/chart/components/editor/filter/auth-tree-chart/FilterFiled.vue +++ b/core/core-frontend/src/views/chart/components/editor/filter/auth-tree-chart/FilterFiled.vue @@ -15,6 +15,7 @@ import { sysParamsIlns, fieldEnums } from '@/views/visualized/data/dataset/options.js' +import TimeSetDialog from '@/components/time-set-dialog/index.vue' import { iconFieldMap } from '@/components/icon-group/field-list' export interface Item { term: string @@ -27,6 +28,7 @@ export interface Item { filterTypeTime?: string timeValue: string dynamicTimeSetting?: SelectConfig + timeType?: string } type Props = { @@ -432,6 +434,17 @@ const addFields = () => { showTextArea.value = false } +const timeDialogRef = ref() +const showTimeDialog = (obj: any) => { + if (obj.deType !== 1) return + timeDialogRef.value.init(obj.timeType, obj.value) +} + +const saveTime = (type, value) => { + item.value.timeType = type + item.value.value = value +} + const emits = defineEmits(['update:item', 'del']) @@ -590,6 +603,19 @@ const emits = defineEmits(['update:item', 'del']) size="small" v-model="item.timeValue" /> +
@@ -709,6 +735,7 @@ const emits = defineEmits(['update:item', 'del']) +