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'])
+