|
@@ -34,7 +34,7 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'table', 'echarts', 'echart
|
|
|
return;
|
|
|
}
|
|
|
$.ajax({
|
|
|
- url: Config.url_type+"/sim/debug/debugClearAllFaultViaSimNum/"+customValue,
|
|
|
+ url: Config.url_type+"/sim/debug/debugClearAllFaultBySimNum/"+customValue,
|
|
|
type: 'get',
|
|
|
success: function (data) {
|
|
|
console.log(data.code);
|
|
@@ -79,15 +79,33 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'table', 'echarts', 'echart
|
|
|
rel_Ids.push($(this).val());
|
|
|
console.log(rel_Ids+'###');
|
|
|
$(this).attr("checked", "true");
|
|
|
- }
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
//下发故障
|
|
|
$(document).on("click", ".btn-issued-fault", function () {
|
|
|
+ var customValue = $('.simNum1 option:selected').text();
|
|
|
+ if(!customValue){
|
|
|
+ Layer.alert('选择设备编号');
|
|
|
+ return;
|
|
|
+ }
|
|
|
if(rel_Ids==""){
|
|
|
- Layer.alert('请选择编号');
|
|
|
+ Layer.alert('请选择故障');
|
|
|
return;
|
|
|
}
|
|
|
+ $.ajax({
|
|
|
+ url: Config.url_type+"/sim/debug/debugWriteSelectedFaultBySimNum/"+customValue+"/"+rel_Ids+"?checkReplace=false",
|
|
|
+ type: 'get',
|
|
|
+ success: function (data) {
|
|
|
+ console.log(data.code);
|
|
|
+ if(data.code==200){
|
|
|
+ $(".content").val(data.msg);
|
|
|
+ }else{
|
|
|
+ $(".content").val(data.msg);
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
});
|
|
|
|