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,