...
|
...
|
@@ -138,7 +138,7 @@ |
|
|
columns: [{
|
|
|
title: "项目名称",
|
|
|
field: "name",
|
|
|
width: "10%"
|
|
|
width: "20%"
|
|
|
}, {
|
|
|
title: "qcloud",
|
|
|
field: "name",
|
...
|
...
|
@@ -146,10 +146,23 @@ |
|
|
var div = $("<div >").attr('id', 'qcloud_' + rowData.name);
|
|
|
return div;
|
|
|
},
|
|
|
width: "25%"
|
|
|
width: "60%"
|
|
|
|
|
|
}, {
|
|
|
title: "操作",
|
|
|
field: "op",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
var div = $("<div>");
|
|
|
$("<button onclick=\"restart(\'" + rowData.name + "\',\'qcloud\',\'\')\">").addClass("btn btn-xs btn-primary").html("qcloud重启").appendTo(div);
|
|
|
div.append(" ");
|
|
|
return div;
|
|
|
},
|
|
|
width: "20%"
|
|
|
}]
|
|
|
};
|
|
|
//加载表格
|
|
|
$("#infoTable").table(tableParam);
|
|
|
});
|
|
|
// , {
|
|
|
// title: "qcloudaz2",
|
|
|
// field: "name",
|
...
|
...
|
@@ -194,9 +207,7 @@ |
|
|
// width: "15%"
|
|
|
// }
|
|
|
|
|
|
//加载表格
|
|
|
$("#infoTable").table(tableParam);
|
|
|
});
|
|
|
|
|
|
|
|
|
function setStatus() {
|
|
|
if (table_data == null || table_data.rows == undefined)
|
...
|
...
|
@@ -227,7 +238,8 @@ |
|
|
span.attr("data-toggle", "popover");
|
|
|
span.attr("data-placement", "bottom");
|
|
|
span.attr("data-html", "true");
|
|
|
span.attr("title", val.refreshDateTime+"<br>"+val.lastStart);
|
|
|
// span.attr("title", val.refreshDateTime+"<br>"+val.lastStart);
|
|
|
span.attr("title", val.lastStart);
|
|
|
span.attr("data-content", "<button class='btn btn-primary btn-xs' onclick=\"restart(\'" + name + "\',\'single\',\'"+val.ip+"\')\">重启</button> <button class='btn btn-primary btn-xs' onclick=\"stop(\'" + name + "\',\'single\',\'"+val.ip+"\')\">停止</button>");
|
|
|
// span.attr("data-content", "unkown");
|
|
|
span.popover({
|
...
|
...
|
|