|
|
@@ -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(); |
|
|
|
} |