首页的时间可选范围也应该改为不超过当前时间
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
v-model="formData.dateRange"
|
||||
style="width: 100%"
|
||||
:placeholder="['开始日期', '结束日期']"
|
||||
:limitDateRange="limitDateRange"
|
||||
/>
|
||||
</d-form-item>
|
||||
</d-col>
|
||||
@@ -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<Date[]>([new Date(2000, 1, 1), currentDate]); // 结束日期设置为当前时间
|
||||
const props = defineProps({
|
||||
layout: {
|
||||
type: String,
|
||||
|
||||
Reference in New Issue
Block a user