...
|
...
|
@@ -47,9 +47,10 @@ |
|
|
var data = [];
|
|
|
for (var i = 0; i < 20; i++) {
|
|
|
data.push({
|
|
|
userId: i,
|
|
|
userName: "用户" + i,
|
|
|
status: i % 3 == 0 ? 0 : 1
|
|
|
moName: i,
|
|
|
moHostIp: "用户" + i,
|
|
|
moType: i % 3 == 0 ? 0 : 1,
|
|
|
moStatus: "normal"
|
|
|
});
|
|
|
}
|
|
|
$("#table").table({
|
...
|
...
|
@@ -57,16 +58,19 @@ |
|
|
panelClass: "panel-success",
|
|
|
pagination: true,
|
|
|
columns: [{
|
|
|
title: "用户id",
|
|
|
field: "userId"
|
|
|
title: "监控网元",
|
|
|
field: "moName"
|
|
|
}, {
|
|
|
title: "用户名称",
|
|
|
field: "userName"
|
|
|
title: "主机地址",
|
|
|
field: "moHostIp"
|
|
|
}, {
|
|
|
title: "状态",
|
|
|
field: "status"
|
|
|
title: "网元类型",
|
|
|
field: "moType"
|
|
|
},{
|
|
|
title: "网元状态",
|
|
|
field: "moStatus"
|
|
|
}, {
|
|
|
title: "状态",
|
|
|
title: "操作",
|
|
|
formatter : function(value, rowData, rowIndex) {
|
|
|
var div = $("<div>");
|
|
|
var editBtn = $("<button>").addClass("btn btn-inverse btn-mini").html("修改").appendTo(div);
|
...
|
...
|
|