|
@@ -115,6 +115,28 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'table', 'echarts', 'echart
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ //重置功能,只需要请求地址即可
|
|
|
|
+ $(document).on("click", ".btn-reset-fault", function () {
|
|
|
|
+ var index = Layer.load(2, {
|
|
|
|
+ shade: [0.5,'#393D49'],
|
|
|
|
+ content: '正在重置所有故障,请稍后...', // 这里是加载的文字
|
|
|
|
+ });
|
|
|
|
+ $.ajax({
|
|
|
|
+ url: Config.url_type+"/sim/debug/debugResetAnything/",
|
|
|
|
+ type: 'get',
|
|
|
|
+ success: function (data) {
|
|
|
|
+ console.log(data);
|
|
|
|
+ if(data.code==200){
|
|
|
|
+ $(".content").val(data.msg);
|
|
|
|
+ Layer.close(index);
|
|
|
|
+ }else{
|
|
|
|
+ $(".content").val(data.msg);
|
|
|
|
+ Layer.close(index);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+
|
|
//只允许选择三个故障
|
|
//只允许选择三个故障
|
|
var rel_Ids = [];
|
|
var rel_Ids = [];
|
|
$(document).on('click', "input[type='checkbox']", function () {
|
|
$(document).on('click', "input[type='checkbox']", function () {
|