...
|
...
|
@@ -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");
|
...
|
...
|
|