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;