修复信息回显
This commit is contained in:
parent
68a40e67b3
commit
9d8bc323da
@ -88,7 +88,7 @@ const handleQuery = async () => {
|
|||||||
// 按天查询
|
// 按天查询
|
||||||
const handleQueryByDate = async (date: any) => {
|
const handleQueryByDate = async (date: any) => {
|
||||||
state.queryParams.startTime = FormatDateDelHMS(date);
|
state.queryParams.startTime = FormatDateDelHMS(date);
|
||||||
state.queryParams.endTime = FormatDateDelHMS(date);
|
state.queryParams.endTime = FormatDateEndHMS(date);
|
||||||
let params = Object.assign(state.queryParams);
|
let params = Object.assign(state.queryParams);
|
||||||
var res = await getAPI(SysScheduleApi).apiSysSchedulePagePost(params);
|
var res = await getAPI(SysScheduleApi).apiSysSchedulePagePost(params);
|
||||||
state.TodayScheduleData = res.data.result ?? [];
|
state.TodayScheduleData = res.data.result ?? [];
|
||||||
@ -139,6 +139,14 @@ function FormatDateDelHMS(date: any) {
|
|||||||
return newDate;
|
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) {
|
function FormatDate(date: any) {
|
||||||
return dayjs(date).format('YYYY-MM-DD');
|
return dayjs(date).format('YYYY-MM-DD');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user