|
@@ -229,6 +229,11 @@
|
|
|
}
|
|
|
// localStorage.setItem("inspectQuery", JSON.stringify($("#searchForm").serializeArray()));
|
|
|
$.post('${ctx}/admin/exam/inspected/cancel', {studentId: $(this).attr('data-id')}, function (result) {
|
|
|
+ if(typeof result.success === 'undefined'){
|
|
|
+ alert("权限失效,请重新登录!");
|
|
|
+ window.location.href = "/login";
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (result.success == true) {
|
|
|
alert('取消成功');
|
|
|
$('[name="subjectCode"]').attr('value',result.subjectCode);
|