From ccd7df4fbb147564004081980b394e60665349a2 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期三, 06 十一月 2024 15:23:17 +0800 Subject: [PATCH] 对话禁用查询 --- src/components/chat/chatComponents/summaryCom/components/recordSet/components/TimeRange.vue | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/components/chat/chatComponents/summaryCom/components/recordSet/components/TimeRange.vue b/src/components/chat/chatComponents/summaryCom/components/recordSet/components/TimeRange.vue index 005ad19..27543f2 100644 --- a/src/components/chat/chatComponents/summaryCom/components/recordSet/components/TimeRange.vue +++ b/src/components/chat/chatComponents/summaryCom/components/recordSet/components/TimeRange.vue @@ -105,6 +105,7 @@ }; const quickPickValue = ref<TimeRangeEnum>(null); const quickPickRangeClick = (val: TimeRangeEnum) => { + if (props.disabled) return; if (quickPickValue.value === val) return; quickPickValue.value = val; @@ -114,6 +115,8 @@ const offsetClickIsAllow = computed(() => !!dateValue.value && !props.disabled); const preDayClick = () => { + if (props.disabled) return; + if (!dateValue.value) return; dateValue.value[0] = moment(dateValue.value[0]).subtract(1, 'day').format('YYYY-MM-DD HH:mm:ss'); dateChange(); @@ -122,6 +125,8 @@ }; const nextDayClick = () => { + if (props.disabled) return; + if (!dateValue.value) return; dateValue.value[1] = moment(dateValue.value[1]).add(1, 'day').format('YYYY-MM-DD HH:mm:ss'); dateChange(); -- Gitblit v1.9.3