mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-08 02:16:45 +08:00
fix bug
This commit is contained in:
@@ -104,10 +104,11 @@
|
||||
:show-time="{ format: 'HH:mm' }"
|
||||
:placeholder="[' 开始时间2', ' 结束时间2']"
|
||||
:disabledDate="disabledDate"
|
||||
v-model:value="projectInfo.rangeTime"
|
||||
v-model:value="timeRange"
|
||||
@calendarChange="calendarChange"
|
||||
style="width: 100%; height: 40px; border-radius: 5px"
|
||||
:allowClear="false"
|
||||
format="YYYY-MM-DD HH:mm"
|
||||
valueFormat="YYYY-MM-DD HH:mm"
|
||||
@change="timeChange"
|
||||
:disabled="!!viewDetail"
|
||||
@@ -335,8 +336,10 @@ export default {
|
||||
ptojectType: "",
|
||||
changeCondition: false,
|
||||
clickNum: 0,
|
||||
timeRange: []
|
||||
});
|
||||
|
||||
|
||||
// 封面图选择
|
||||
const handleChangeSelect = (value) => {
|
||||
console.log(value);
|
||||
@@ -378,11 +381,7 @@ export default {
|
||||
!routers.query.projectId &&
|
||||
!!routers.query.parentId &&
|
||||
(state.projectInfo.name = "");
|
||||
state.projectInfo.rangeTime = [
|
||||
state.projectInfo.beginTime,
|
||||
state.projectInfo.endTime,
|
||||
];
|
||||
|
||||
state.timeRange = [state.projectInfo.beginTime, state.projectInfo.endTime];
|
||||
state.courseSyncFlag = !!state.projectInfo.courseSyncFlag;
|
||||
if (Number(state.projectInfo.status) === -5) {
|
||||
let obj = {
|
||||
@@ -420,7 +419,7 @@ export default {
|
||||
state.projectInfo.projectTemplateId = option.id
|
||||
state.projectInfo.id = ''
|
||||
state.projectInfo.type = 3;
|
||||
state.projectInfo.rangeTime = [dayjs(option.beginTime, "YYYY-MM-DD HH:mm"), dayjs(option.endTime, "YYYY-MM-DD HH:mm")];
|
||||
state.timeRange = [option.beginTime, option.endTime];
|
||||
state.projectInfo.parentName = routers.query.parentName;
|
||||
state.projectInfo.parentId = routers.query.parentId;
|
||||
};
|
||||
@@ -529,7 +528,7 @@ export default {
|
||||
const disabledDate = (current) => {
|
||||
//编辑的时候 开始实际只能选当前时间之前的时间
|
||||
if (state.projectInfo.projectId && state.datePartial === 'start') {
|
||||
return current && current > dayjs(state.projectInfo?.rangeTime[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');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user