|
@@ -132,19 +132,36 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
console.log(data);
|
|
|
if(data.code==200 && data.data.simState==2){
|
|
|
$(".kaiguan").css('display','block');
|
|
|
- Layer.close(index);
|
|
|
}else{
|
|
|
$(".kaiguan").css('display','none');
|
|
|
- $(".mnq_zt").val(data.msg);
|
|
|
- Layer.close(index);
|
|
|
- return;
|
|
|
}
|
|
|
+ $(".mnq_zt").val(data.msg)
|
|
|
+ Layer.close(index);
|
|
|
}
|
|
|
});
|
|
|
}else{
|
|
|
window.location.href='';
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ //载入页面单独调用一次
|
|
|
+ if(Config.is_fault){
|
|
|
+ $.ajax({
|
|
|
+ url: Config.url_type+"/sim/real-exam/student/refresh-sim-state?ip="+Config.server_ip,
|
|
|
+ type: 'get',
|
|
|
+ success: function (data) {
|
|
|
+ console.log(data);
|
|
|
+ if(data.code==200 && data.data.simState==2){
|
|
|
+ $(".kaiguan").css('display','block');
|
|
|
+ }else{
|
|
|
+ $(".kaiguan").css('display','none');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ Layer.close(index);
|
|
|
+ $(".mnq_zt").val(data.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
examing: function () {
|
|
|
var dingshi = '';
|