修复信息回显

This commit is contained in:
IMaster 2024-07-16 09:18:36 +08:00
parent 68a40e67b3
commit 9d8bc323da

View File

@ -88,7 +88,7 @@ const handleQuery = async () => {
//
const handleQueryByDate = async (date: any) => {
state.queryParams.startTime = FormatDateDelHMS(date);
state.queryParams.endTime = FormatDateDelHMS(date);
state.queryParams.endTime = FormatDateEndHMS(date);
let params = Object.assign(state.queryParams);
var res = await getAPI(SysScheduleApi).apiSysSchedulePagePost(params);
state.TodayScheduleData = res.data.result ?? [];
@ -139,6 +139,14 @@ function FormatDateDelHMS(date: any) {
return newDate;
}
function FormatDateEndHMS(date: any) {
var newDate = new Date(date);
newDate.setHours(23);
newDate.setMinutes(59);
newDate.setSeconds(59);
return newDate;
}
//
function FormatDate(date: any) {
return dayjs(date).format('YYYY-MM-DD');