Browse Source

考务管理-不能监考老师-时间判断

新疆体育高职分支
dyy 1 year ago
parent
commit
069777dade
1 changed files with 16 additions and 10 deletions
  1. +16
    -10
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamTeacherTime/Form.js

+ 16
- 10
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamTeacherTime/Form.js View File

@@ -78,15 +78,21 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
};
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/Exam_ExamTeacherTime/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
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())
};
page.init();
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/Exam_ExamTeacherTime/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

Loading…
Cancel
Save