diff --git a/core/core-frontend/src/custom-component/v-query/Time.vue b/core/core-frontend/src/custom-component/v-query/Time.vue index 373aca7805..324e76805b 100644 --- a/core/core-frontend/src/custom-component/v-query/Time.vue +++ b/core/core-frontend/src/custom-component/v-query/Time.vue @@ -463,6 +463,17 @@ const onConfirm = () => { handleValueChange() showDate.value = false } +const showDateQuick = ref(false) +const showQuick = () => { + showDateQuick.value = true +} + +const emitMobile = (_, val) => { + const [start, end] = val + selectValue.value = [start?.format('YYYY/MM/DD HH:mm:ss'), end?.format('YYYY/MM/DD HH:mm:ss')] + handleValueChange() + showDateQuick.value = false +} onBeforeMount(() => { init() @@ -515,7 +526,19 @@ const formatDate = computed(() => { :class="isRange && 'wl50'" @click="showPopup" /> -
+
+
+ +
+ {{ ele.text }} +
+
{ left: auto; right: 0; width: 50%; + + .quick-selection { + position: absolute; + top: 0px; + right: 10px; + width: 24px; + height: 32px; + z-index: 10; + } } } +.shortcuts-mobile { + padding: 10px; + text-align: center; + border-bottom: 1px solid #eee; +}