Merge pull request '修复信息回显' (#52) from orzsoft_admin/Admin.NET.Pro:main into main
Reviewed-on: http://101.43.53.74:3000/Admin.NET/Admin.NET.Pro/pulls/52
This commit is contained in:
commit
e76ea05a6d
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user