From e88237fb54c85887d7104b8faa3c587b86631daf Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 9 Oct 2025 13:50:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=95=B0=E6=8D=AE=E9=9B=86):=20=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E6=97=B6=E9=97=B4=E6=97=B6=EF=BC=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=97=B6=E9=97=B4=E7=B2=92=E5=BA=A6=EF=BC=8C?= =?UTF-8?q?=E7=84=B6=E5=90=8E=E9=80=9A=E8=BF=87=E6=8E=A7=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E5=BD=A2=E5=BC=8F=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 --- .../src/components/time-set-dialog/index.vue | 101 ++++++++++++++++++ .../editor/filter/auth-tree/FilterFiled.vue | 19 +++- .../data/dataset/auth-tree/FilterFiled.vue | 20 +++- 3 files changed, 137 insertions(+), 3 deletions(-) create mode 100644 core/core-frontend/src/components/time-set-dialog/index.vue diff --git a/core/core-frontend/src/components/time-set-dialog/index.vue b/core/core-frontend/src/components/time-set-dialog/index.vue new file mode 100644 index 0000000000..2eda1fff17 --- /dev/null +++ b/core/core-frontend/src/components/time-set-dialog/index.vue @@ -0,0 +1,101 @@ + + + + + diff --git a/core/core-frontend/src/views/chart/components/editor/filter/auth-tree/FilterFiled.vue b/core/core-frontend/src/views/chart/components/editor/filter/auth-tree/FilterFiled.vue index 4d76ee9399..25636caba9 100644 --- a/core/core-frontend/src/views/chart/components/editor/filter/auth-tree/FilterFiled.vue +++ b/core/core-frontend/src/views/chart/components/editor/filter/auth-tree/FilterFiled.vue @@ -23,6 +23,7 @@ export interface Item { name: string value: number timeValue: string + timeType?: string } type Props = { @@ -312,7 +313,15 @@ const addFields = () => { } showTextArea.value = false } - +const timeDialog = ref() +const showTimeDialog = (obj: any) => { + if (obj.deType !== 1) return + timeDialog.value.init(obj.timeType, obj.timeValue) +} +const saveTime = (type, value) => { + item.value.timeType = type + item.value.timeValue = value +} const emits = defineEmits(['update:item', 'del']) @@ -436,7 +445,12 @@ const emits = defineEmits(['update:item', 'del']) effect="light" :content="item.timeValue" placement="top" - >
@@ -540,6 +554,7 @@ const emits = defineEmits(['update:item', 'del']) +