|
@@ -117,6 +117,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
});
|
|
|
},
|
|
|
examing: function () {
|
|
|
+ var dingshi = '';
|
|
|
$(document).ready(function() {
|
|
|
var countdownTime = Config.timer; // 倒计时时间,单位为秒
|
|
|
var countdownTime1 = 600; // 10分钟倒计时时间,单位为秒
|
|
@@ -152,42 +153,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- // clearInterval(timer);
|
|
|
- // $(".djs").html('已经超时,10分钟00秒后系统自动交卷。');
|
|
|
- // setTimeout(function() {
|
|
|
- // var minutes1 = parseInt(countdownTime1 / 60, 10);
|
|
|
- // var seconds1 = parseInt(countdownTime1 % 60, 10);
|
|
|
- // $(".djs").html('已经超时,'+minutes1 + "分" + seconds1 +'秒后系统自动交卷。');
|
|
|
- // if (--countdownTime1>0) {
|
|
|
- // var minutes2 = parseInt(countdownTime1 / 60, 10);
|
|
|
- // var seconds2 = parseInt(countdownTime1 % 60, 10);
|
|
|
- // $(".djs").html('已经超时,'+minutes2 + "分" + seconds2 +'秒后系统自动交卷。');
|
|
|
- // console.log(minutes2+'@@@@'+seconds2);
|
|
|
- // if(minutes2==0 && seconds2==1){
|
|
|
- // $('#update-form').submit();
|
|
|
- // clearInterval(timer);
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }, 1000); // 第二个定时器2秒后执行
|
|
|
}
|
|
|
- // if(minutes<1){
|
|
|
- // fenzhong = parseInt(minutes.replace("0-",''));
|
|
|
- // console.log(fenzhong);
|
|
|
- // if(fenzhong==7){
|
|
|
- // $('#update-form').submit();
|
|
|
- // clearInterval(timer);
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
}, 1000);
|
|
|
|
|
|
//五秒刷新,同步更换件列表数据
|
|
|
if(Config.isloading==1 && countdownTime>0){
|
|
|
- setInterval(function() {
|
|
|
+ dingshi = setInterval(function() {
|
|
|
window.location.reload();
|
|
|
}, 30000);
|
|
|
}
|
|
|
-
|
|
|
});
|
|
|
|
|
|
$(document).on('click', '.btn-replace', function () {
|
|
@@ -216,19 +190,30 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
|
|
|
//追加记录
|
|
|
$(document).on('click', '.btn-addlog', function () {
|
|
|
+ clearTimeout(dingshi);
|
|
|
+ console.log(dingshi+'@@@@');
|
|
|
var ids = Config.ids;
|
|
|
var other_report_count = Config.other_report_count;
|
|
|
if(other_report_count==3){
|
|
|
Layer.alert('维修报告最多允许增加三条');
|
|
|
return false;
|
|
|
}
|
|
|
- Fast.api.open('student/collection/addreport/ids/'+ids, __("维修报告"), {area: ["95%", "85%"], maxmin: true, moveOut: false});
|
|
|
+ Fast.api.open('student/collection/addreport/ids/'+ids, __("维修报告"), {area: ["95%", "85%"],
|
|
|
+ callback:function(value){
|
|
|
+ console.log(value+'@@@@');
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
//编辑记录
|
|
|
$(document).on('click', '.btnedit', function () {
|
|
|
+ clearTimeout(dingshi);
|
|
|
var ids = Config.ids;
|
|
|
var xh_id = $(this).attr('xh_id');
|
|
|
- Fast.api.open('student/collection/editreport/ids/'+ids+'/xh_id/'+xh_id, __("维修报告"), {area: ["95%", "85%"], maxmin: true, moveOut: false});
|
|
|
+ Fast.api.open('student/collection/editreport/ids/'+ids+'/xh_id/'+xh_id, __("维修报告"), {area: ["95%", "85%"],
|
|
|
+ callback:function(value){
|
|
|
+ console.log(value+'@@@@');
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
//移除记录
|
|
|
$(document).on('click', '.btnmove', function () {
|
|
@@ -255,6 +240,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
);
|
|
|
|
|
|
});
|
|
|
+ $(document).on('click', '.layui-layer-close1', function () {
|
|
|
+ window.location.reload();
|
|
|
+ });
|
|
|
|
|
|
$(document).on("fa.event.appendfieldlist", "#second-fieldlist .btn-append", function (e, obj) {
|
|
|
//绑定动态下拉组件
|