From d08ee2efccbb2bb5b5bbb56c5a0c1f886c84f339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B0=91=E5=BA=B7?= Date: Wed, 26 Mar 2025 17:13:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=9A=84=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=8F=AF=E9=80=89=E8=8C=83=E5=9B=B4=E4=B9=9F=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=B8=8D=E8=B6=85=E8=BF=87=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AdvanceSearch/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/AdvanceSearch/index.vue b/src/components/AdvanceSearch/index.vue index 7a92a09..677d6b8 100644 --- a/src/components/AdvanceSearch/index.vue +++ b/src/components/AdvanceSearch/index.vue @@ -41,6 +41,7 @@ v-model="formData.dateRange" style="width: 100%" :placeholder="['开始日期', '结束日期']" + :limitDateRange="limitDateRange" /> @@ -79,6 +80,8 @@ import { searchLanguageList } from '@/api/jyh'; import { useGlobalInfoStore } from '@/stores/Global'; const globalInfo = useGlobalInfoStore(); const industryList = globalInfo.industryList; +const currentDate = new Date(); // 获取当前时间 +const limitDateRange = ref([new Date(2000, 1, 1), currentDate]); // 结束日期设置为当前时间 const props = defineProps({ layout: { type: String,