...
|
...
|
@@ -82,27 +82,27 @@ |
|
|
<h5>云服务操作</h5>
|
|
|
</div>
|
|
|
<div class="widget-content nopadding">
|
|
|
<div class="widget-title" style="height: 53px;">
|
|
|
<div>
|
|
|
<button id="qcloudRestart" class="btn btn-primary" style="margin-top: 12px;margin-left: 100px;"
|
|
|
onclick="restart('all','qcloud','')">
|
|
|
az1重启
|
|
|
</button>
|
|
|
|
|
|
|
|
|
<button id="qcloudaz2Restart" class="btn btn-primary" style="margin-top: 12px;margin-left: 100px;"
|
|
|
onclick="restart('all','qcloudaz2','')">
|
|
|
az2重启
|
|
|
</button>
|
|
|
|
|
|
<%--<div class="widget-title" style="height: 53px;">--%>
|
|
|
<%--<div>--%>
|
|
|
<%--<button id="qcloudRestart" class="btn btn-primary" style="margin-top: 12px;margin-left: 100px;"--%>
|
|
|
<%--onclick="restart('all','qcloud','')">--%>
|
|
|
<%--az1重启--%>
|
|
|
<%--</button>--%>
|
|
|
<%-- --%>
|
|
|
|
|
|
<%--<button id="qcloudaz3Restart" class="btn btn-primary" style="margin-top: 12px;margin-left: 100px;"--%>
|
|
|
<%--onclick="restart('all','qcloudaz3','')">--%>
|
|
|
<%--az3重启--%>
|
|
|
<%--<button id="qcloudaz2Restart" class="btn btn-primary" style="margin-top: 12px;margin-left: 100px;"--%>
|
|
|
<%--onclick="restart('all','qcloudaz2','')">--%>
|
|
|
<%--az2重启--%>
|
|
|
<%--</button>--%>
|
|
|
<%-- --%>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<%--<%–<button id="qcloudaz3Restart" class="btn btn-primary" style="margin-top: 12px;margin-left: 100px;"–%>--%>
|
|
|
<%--<%–onclick="restart('all','qcloudaz3','')">–%>--%>
|
|
|
<%--<%–az3重启–%>--%>
|
|
|
<%--<%–</button>–%>--%>
|
|
|
<%--<%– –%>--%>
|
|
|
<%--</div>--%>
|
|
|
<%--</div>--%>
|
|
|
<div id="infoTable">
|
|
|
|
|
|
</div>
|
...
|
...
|
@@ -126,7 +126,7 @@ |
|
|
title: "java服务进程列表",
|
|
|
dataType: "json",
|
|
|
pagination: true,
|
|
|
pageSize: 5,
|
|
|
pageSize: 50,
|
|
|
loadFilter: function (data) {
|
|
|
return defaultLoadFilter(data);
|
|
|
},
|
...
|
...
|
@@ -148,50 +148,51 @@ |
|
|
},
|
|
|
width: "25%"
|
|
|
|
|
|
}, {
|
|
|
title: "qcloudaz2",
|
|
|
field: "name",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
var div = $("<div >").attr('id', 'qcloudaz2_' + rowData.name);
|
|
|
return div;
|
|
|
},
|
|
|
width: "25%"
|
|
|
|
|
|
/*}, {
|
|
|
title: "qcloudaz3",
|
|
|
field: "name",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
var div = $("<div >").attr('id', 'qcloudaz3_' + rowData.name);
|
|
|
return div;
|
|
|
},
|
|
|
width: "25%"*/
|
|
|
|
|
|
}, {
|
|
|
title: "操作",
|
|
|
field: "op",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
var div = $("<div>");
|
|
|
/*$("<button onclick=\"restart(\'" + rowData.name + "\',\'aws\',\'\')\">").addClass("btn btn-xs btn-primary").html("aws重启").appendTo(div);
|
|
|
div.append(" ");*/
|
|
|
$("<button onclick=\"restart(\'" + rowData.name + "\',\'qcloud\',\'\')\">").addClass("btn btn-xs btn-primary").html("az1重启").appendTo(div);
|
|
|
div.append(" ");
|
|
|
$("<button onclick=\"restart(\'" + rowData.name + "\',\'qcloudaz2\',\'\')\">").addClass("btn btn-xs btn-primary").html("az2重启").appendTo(div);
|
|
|
/*div.append(" ");
|
|
|
$("<button onclick=\"restart(\'" + rowData.name + "\',\'qcloudaz3\',\'\')\">").addClass("btn btn-xs btn-primary").html("az3重启").appendTo(div);*/
|
|
|
div.append("</br>");
|
|
|
div.append("</br>");
|
|
|
/* $("<button onclick=\"stop(\'" + rowData.name + "\',\'aws\',\'\')\">").addClass("btn btn-xs btn-primary").html("aws停止").appendTo(div);
|
|
|
div.append(" ");*/
|
|
|
$("<button onclick=\"stop(\'" + rowData.name + "\',\'qcloud\',\'\')\">").addClass("btn btn-xs btn-primary").html("az1停止").appendTo(div);
|
|
|
div.append(" ");
|
|
|
$("<button onclick=\"stop(\'" + rowData.name + "\',\'qcloudaz2\',\'\')\">").addClass("btn btn-xs btn-primary").html("az2停止").appendTo(div);
|
|
|
/*div.append(" ");
|
|
|
$("<button onclick=\"stop(\'" + rowData.name + "\',\'qcloudaz3\',\'\')\">").addClass("btn btn-xs btn-primary").html("az3停止").appendTo(div);*/
|
|
|
return div;
|
|
|
},
|
|
|
width: "15%"
|
|
|
}]
|
|
|
};
|
|
|
// , {
|
|
|
// title: "qcloudaz2",
|
|
|
// field: "name",
|
|
|
// formatter: function (value, rowData, rowIndex) {
|
|
|
// var div = $("<div >").attr('id', 'qcloudaz2_' + rowData.name);
|
|
|
// return div;
|
|
|
// },
|
|
|
// width: "25%"
|
|
|
//
|
|
|
// /*}, {
|
|
|
// title: "qcloudaz3",
|
|
|
// field: "name",
|
|
|
// formatter: function (value, rowData, rowIndex) {
|
|
|
// var div = $("<div >").attr('id', 'qcloudaz3_' + rowData.name);
|
|
|
// return div;
|
|
|
// },
|
|
|
// width: "25%"*/
|
|
|
//
|
|
|
// }, {
|
|
|
// title: "操作",
|
|
|
// field: "op",
|
|
|
// formatter: function (value, rowData, rowIndex) {
|
|
|
// var div = $("<div>");
|
|
|
// /*$("<button onclick=\"restart(\'" + rowData.name + "\',\'aws\',\'\')\">").addClass("btn btn-xs btn-primary").html("aws重启").appendTo(div);
|
|
|
// div.append(" ");*/
|
|
|
// $("<button onclick=\"restart(\'" + rowData.name + "\',\'qcloud\',\'\')\">").addClass("btn btn-xs btn-primary").html("az1重启").appendTo(div);
|
|
|
// div.append(" ");
|
|
|
// $("<button onclick=\"restart(\'" + rowData.name + "\',\'qcloudaz2\',\'\')\">").addClass("btn btn-xs btn-primary").html("az2重启").appendTo(div);
|
|
|
// /*div.append(" ");
|
|
|
// $("<button onclick=\"restart(\'" + rowData.name + "\',\'qcloudaz3\',\'\')\">").addClass("btn btn-xs btn-primary").html("az3重启").appendTo(div);*/
|
|
|
// div.append("</br>");
|
|
|
// div.append("</br>");
|
|
|
// /* $("<button onclick=\"stop(\'" + rowData.name + "\',\'aws\',\'\')\">").addClass("btn btn-xs btn-primary").html("aws停止").appendTo(div);
|
|
|
// div.append(" ");*/
|
|
|
// $("<button onclick=\"stop(\'" + rowData.name + "\',\'qcloud\',\'\')\">").addClass("btn btn-xs btn-primary").html("az1停止").appendTo(div);
|
|
|
// div.append(" ");
|
|
|
// $("<button onclick=\"stop(\'" + rowData.name + "\',\'qcloudaz2\',\'\')\">").addClass("btn btn-xs btn-primary").html("az2停止").appendTo(div);
|
|
|
// /*div.append(" ");
|
|
|
// $("<button onclick=\"stop(\'" + rowData.name + "\',\'qcloudaz3\',\'\')\">").addClass("btn btn-xs btn-primary").html("az3停止").appendTo(div);*/
|
|
|
// return div;
|
|
|
// },
|
|
|
// width: "15%"
|
|
|
// }
|
|
|
|
|
|
//加载表格
|
|
|
$("#infoTable").table(tableParam);
|
...
|
...
|
|