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