版本发布日期可选范围应该不超过当前时间
This commit is contained in:
@@ -41,6 +41,7 @@
|
|||||||
v-model="newFormData.dateRange"
|
v-model="newFormData.dateRange"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:placeholder="['开始日期', '结束日期']"
|
:placeholder="['开始日期', '结束日期']"
|
||||||
|
:limitDateRange="limitDateRange"
|
||||||
/>
|
/>
|
||||||
</d-form-item>
|
</d-form-item>
|
||||||
</d-col>
|
</d-col>
|
||||||
@@ -238,6 +239,8 @@ const newFormData = ref({
|
|||||||
industry: '',
|
industry: '',
|
||||||
dateRange: ['', '']
|
dateRange: ['', '']
|
||||||
});
|
});
|
||||||
|
const currentDate = new Date(); // 获取当前时间
|
||||||
|
const limitDateRange = ref<Date[]>([new Date(2000, 1, 1), currentDate]); // 结束日期设置为当前时间
|
||||||
|
|
||||||
// watch(() => globalInfo.headerSearch, (newVal: any) => {
|
// watch(() => globalInfo.headerSearch, (newVal: any) => {
|
||||||
// headerSearch.value = newVal;
|
// headerSearch.value = newVal;
|
||||||
|
|||||||
Reference in New Issue
Block a user