Authored by FengRuwei

添加服务异常检查开关

... ... @@ -23,5 +23,6 @@ public class JavaApiInfoReq extends PageRequest {
private Integer apiReqMethod;
private Integer apiWarnTrigger;
private Integer apiErrorCheck;
}
... ...
... ... @@ -24,7 +24,7 @@
<label class="col-sm-2 control-label"> <span style="color:red">*</span>类别:</label>
<div class="col-sm-2">
<select id="serviceType" name="serviceType" class="form-control">
<select id="serviceType" name="serviceType" class="form-control">
</select>
</div>
... ... @@ -53,6 +53,14 @@
maxlength="30" size="40"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">检查服务异常:</label>
<div class="col-sm-2">
<input type="checkbox" id="apiErrorCheck" name="apiErrorCheck">
</div>
</div>
<div class="form-group">
... ...
... ... @@ -410,14 +410,25 @@
field: "apiWarnTrigger",
width: "4%"
}, {
}, {
title: "服务异常",
field: "apiErrCheck",
width: "4%",
formatter: function (value, rowData, rowIndex) {
if (rowData.apiErrorCheck == 0)
return "N";
else
return "Y";
},
},{
title: "启用",
field: "apiToggle",
formatter: function (value, rowData, rowIndex) {
if (rowData.apiToggle == 0)
return "NO";
return "N";
else
return "YES";
return "Y";
},
width: "3%"
... ... @@ -556,6 +567,7 @@
$("#javaInfoForm #apiWarnTrigger").val(3);
$("#javaInfoForm #apiReqMethod").val(0);
$("#javaInfoForm #serviceType").val(1);
$("#javaInfoForm #apiErrorCheck").prop("checked", false);
} else {
$("#javaInfoForm #serviceType").val(rowData.serviceType);
$("#javaInfoForm #apiName").val(rowData.apiName);
... ... @@ -564,6 +576,7 @@
$("#javaInfoForm #apiToggle").prop("checked", (rowData.apiToggle == 1) ? true : false);
$("#javaInfoForm #apiWarnTrigger").val(rowData.apiWarnTrigger);
$("#javaInfoForm #apiReqMethod").val(rowData.apiReqMethod);
$("#javaInfoForm #apiErrorCheck").prop("checked", (rowData.apiErrorCheck == 1) ? true : false);
}
},
buttons: [{
... ... @@ -592,6 +605,7 @@
'apiToggle': $("#javaInfoForm #apiToggle").prop("checked") == true ? 1 : 0,
'apiWarnTrigger': $("#javaInfoForm #apiWarnTrigger").val(),
'apiReqMethod': $("#javaInfoForm #apiReqMethod").val(),
'apiErrorCheck': $("#javaInfoForm #apiErrorCheck").prop("checked") == true ? 1 : 0
},
success: function (data) {
console.log("fffuck 1");
... ...