diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamTeacherTime/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamTeacherTime/Form.js index 8606a47ff..fb675f10e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamTeacherTime/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamTeacherTime/Form.js @@ -78,6 +78,12 @@ var bootstrap = function ($, learun) { if (!$('body').lrValidform()) { return false; } + let starttime = new Date($('#ExamTimeStart').val()).getTime(); + let endtime = new Date($('#ExamTimeEnd').val()).getTime(); + if (endtime < starttime) { + learun.alert.warning("选择时间段不正确!"); + return false; + } var postData = { strEntity: JSON.stringify($('body').lrGetFormData()) };