mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
fix:项目创建时间限制修改
This commit is contained in:
@@ -102,7 +102,7 @@
|
|||||||
<a-range-picker
|
<a-range-picker
|
||||||
separator="至"
|
separator="至"
|
||||||
:show-time="{ format: 'HH:mm' }"
|
:show-time="{ format: 'HH:mm' }"
|
||||||
:placeholder="[' 开始时间2', ' 结束时间2']"
|
:placeholder="[' 开始时间', ' 结束时间']"
|
||||||
:disabledDate="disabledDate"
|
:disabledDate="disabledDate"
|
||||||
v-model:value="timeRange"
|
v-model:value="timeRange"
|
||||||
@calendarChange="calendarChange"
|
@calendarChange="calendarChange"
|
||||||
@@ -530,7 +530,8 @@ export default {
|
|||||||
if (state.projectInfo.id && state.datePartial === 'start') {
|
if (state.projectInfo.id && state.datePartial === 'start') {
|
||||||
return current && current > dayjs(state.timeRange[0]).endOf("YYYY-MM-DD HH:mm");
|
return current && current > dayjs(state.timeRange[0]).endOf("YYYY-MM-DD HH:mm");
|
||||||
}
|
}
|
||||||
return current && current < dayjs().endOf('day');
|
// return current && current < dayjs().endOf('day');
|
||||||
|
return current && current < dayjs().subtract(1, 'days').endOf('day')
|
||||||
};
|
};
|
||||||
|
|
||||||
function calendarChange(date, dateStr, partial) {
|
function calendarChange(date, dateStr, partial) {
|
||||||
|
|||||||
Reference in New Issue
Block a user