From 6b73951bea7bbef78b0ebcd9d57f8dd4a2b3199e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B0=91=E5=BA=B7?= Date: Tue, 25 Mar 2025 17:02:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=91=E5=B8=83=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E5=8F=AF=E9=80=89=E8=8C=83=E5=9B=B4=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E4=B8=8D=E8=B6=85=E8=BF=87=E5=BD=93=E5=89=8D=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Jyh/Search/Components/OssQuery.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/Jyh/Search/Components/OssQuery.vue b/src/views/Jyh/Search/Components/OssQuery.vue index bf16d67..a8c4056 100644 --- a/src/views/Jyh/Search/Components/OssQuery.vue +++ b/src/views/Jyh/Search/Components/OssQuery.vue @@ -41,6 +41,7 @@ v-model="newFormData.dateRange" style="width: 100%" :placeholder="['开始日期', '结束日期']" + :limitDateRange="limitDateRange" /> @@ -238,6 +239,8 @@ const newFormData = ref({ industry: '', dateRange: ['', ''] }); +const currentDate = new Date(); // 获取当前时间 +const limitDateRange = ref([new Date(2000, 1, 1), currentDate]); // 结束日期设置为当前时间 // watch(() => globalInfo.headerSearch, (newVal: any) => { // headerSearch.value = newVal;