版本发布日期可选范围应该不超过当前时间

This commit is contained in:
付民康
2025-03-25 17:02:21 +08:00
parent c5a729114d
commit 6b73951bea

View File

@@ -41,6 +41,7 @@
v-model="newFormData.dateRange"
style="width: 100%"
:placeholder="['开始日期', '结束日期']"
:limitDateRange="limitDateRange"
/>
</d-form-item>
</d-col>
@@ -238,6 +239,8 @@ const newFormData = ref({
industry: '',
dateRange: ['', '']
});
const currentDate = new Date(); // 获取当前时间
const limitDateRange = ref<Date[]>([new Date(2000, 1, 1), currentDate]); // 结束日期设置为当前时间
// watch(() => globalInfo.headerSearch, (newVal: any) => {
// headerSearch.value = newVal;