Authored by jack.xue

123123

@@ -47,9 +47,10 @@ @@ -47,9 +47,10 @@
47 var data = []; 47 var data = [];
48 for (var i = 0; i < 20; i++) { 48 for (var i = 0; i < 20; i++) {
49 data.push({ 49 data.push({
50 - userId: i,  
51 - userName: "用户" + i,  
52 - status: i % 3 == 0 ? 0 : 1 50 + moName: i,
  51 + moHostIp: "用户" + i,
  52 + moType: i % 3 == 0 ? 0 : 1,
  53 + moStatus: "normal"
53 }); 54 });
54 } 55 }
55 $("#table").table({ 56 $("#table").table({
@@ -57,16 +58,19 @@ @@ -57,16 +58,19 @@
57 panelClass: "panel-success", 58 panelClass: "panel-success",
58 pagination: true, 59 pagination: true,
59 columns: [{ 60 columns: [{
60 - title: "用户id",  
61 - field: "userId" 61 + title: "监控网元",
  62 + field: "moName"
62 }, { 63 }, {
63 - title: "用户名称",  
64 - field: "userName" 64 + title: "主机地址",
  65 + field: "moHostIp"
65 }, { 66 }, {
66 - title: "状态",  
67 - field: "status" 67 + title: "网元类型",
  68 + field: "moType"
  69 + },{
  70 + title: "网元状态",
  71 + field: "moStatus"
68 }, { 72 }, {
69 - title: "状态", 73 + title: "操作",
70 formatter : function(value, rowData, rowIndex) { 74 formatter : function(value, rowData, rowIndex) {
71 var div = $("<div>"); 75 var div = $("<div>");
72 var editBtn = $("<button>").addClass("btn btn-inverse btn-mini").html("修改").appendTo(div); 76 var editBtn = $("<button>").addClass("btn btn-inverse btn-mini").html("修改").appendTo(div);