From d3b7ddbb1ef99755860535999bb1eb2ba0749656 Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 6 Apr 2023 14:33:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E5=8A=A1=E7=AE=A1=E7=90=86=20-=20?= =?UTF-8?q?=E8=80=81=E5=B8=88=E6=97=B6=E9=97=B4=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Exam_ExamTeacherTime/Form.js | 6 ++++++ 1 file changed, 6 insertions(+) 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()) };