...
|
...
|
@@ -164,7 +164,7 @@ |
|
|
title: "业务分类",
|
|
|
// field: "name"
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
return "<div style=' padding:10px;'>" + rowData.name + "</div>";
|
|
|
return "<div>" + rowData.name + "</div>";
|
|
|
}
|
|
|
},
|
|
|
{
|
...
|
...
|
@@ -175,7 +175,7 @@ |
|
|
var array = rowData.url.split("\r\n");
|
|
|
var div = "";
|
|
|
for (var i = 0; i < array.length; i++)
|
|
|
div = div + "<div style='height:30px;padding:10px;'>" + array[i] + "</div>";
|
|
|
div = div + "<div style='height:30px;'>" + array[i] + "</div>";
|
|
|
return div;
|
|
|
}
|
|
|
}, {
|
...
|
...
|
@@ -186,7 +186,7 @@ |
|
|
var array = rowData.connections.split("\r\n");
|
|
|
var div = "";
|
|
|
for (var i = 0; i < array.length; i++)
|
|
|
div = div + "<div style='height:30px;padding:10px;'>" + array[i] + "</div>";
|
|
|
div = div + "<div style='height:30px;'>" + array[i] + "</div>";
|
|
|
return div;
|
|
|
}
|
|
|
}, {
|
...
|
...
|
@@ -197,7 +197,7 @@ |
|
|
var array = rowData.taskCtime.split("\r\n");
|
|
|
var div = "";
|
|
|
for (var i = 0; i < array.length; i++)
|
|
|
div = div + "<div style='height:30px;padding:10px;'>" + array[i] + "</div>";
|
|
|
div = div + "<div style='height:30px;'>" + array[i] + "</div>";
|
|
|
return div;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -206,11 +206,10 @@ |
|
|
width: "100px",
|
|
|
// field: "taskCtime"
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
console.log(rowData.cpu);
|
|
|
var array = rowData.cpu.split("\r\n");
|
|
|
var div = "";
|
|
|
for (var i = 0; i < array.length; i++)
|
|
|
div = div + "<div style='height:30px;padding:10px;'>" + array[i] + "</div>";
|
|
|
div = div + "<div style='height:30px;'>" + array[i] + "</div>";
|
|
|
return div;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -219,11 +218,10 @@ |
|
|
width: "200px",
|
|
|
// field: "taskCtime"
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
console.log(rowData.mem);
|
|
|
var array = rowData.mem.split("\r\n");
|
|
|
var div = "";
|
|
|
for (var i = 0; i < array.length; i++)
|
|
|
div = div + "<div style='height:30px;padding:10px;'>" + array[i] + "</div>";
|
|
|
div = div + "<div style='height:30px;'>" + array[i] + "</div>";
|
|
|
return div;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -232,11 +230,10 @@ |
|
|
width: "130px",
|
|
|
// field: "taskCtime"
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
console.log(rowData.net);
|
|
|
var array = rowData.net.split("\r\n");
|
|
|
var div = "";
|
|
|
for (var i = 0; i < array.length; i++)
|
|
|
div = div + "<div style='height:30px;padding:10px;'>" + array[i] + "</div>";
|
|
|
div = div + "<div style='height:30px;'>" + array[i] + "</div>";
|
|
|
return div;
|
|
|
}
|
|
|
}, {
|
...
|
...
|
@@ -247,7 +244,7 @@ |
|
|
var array = rowData.type.split("\r\n");
|
|
|
var div = "";
|
|
|
for (var i = 0; i < array.length; i++)
|
|
|
div = div + "<div style='height:30px;padding:10px;'>" + array[i] + "</div>";
|
|
|
div = div + "<div style='height:30px;'>" + array[i] + "</div>";
|
|
|
return div;
|
|
|
}
|
|
|
}, {
|
...
|
...
|
@@ -258,18 +255,18 @@ |
|
|
var array = rowData.network.split("\r\n");
|
|
|
var div = "";
|
|
|
for (var i = 0; i < array.length; i++)
|
|
|
div = div + "<div style='height:30px;padding:10px;'>" + array[i] + "</div>";
|
|
|
div = div + "<div style='height:30px;'>" + array[i] + "</div>";
|
|
|
return div;
|
|
|
}
|
|
|
}, {
|
|
|
title: "状态",
|
|
|
width: "100px",
|
|
|
width: "60px",
|
|
|
// field: "state"
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
var array = rowData.state.split("\r\n");
|
|
|
var div = "";
|
|
|
for (var i = 0; i < array.length; i++)
|
|
|
div = div + "<div style='height:30px;padding:10px;'>" + array[i] + "</div>";
|
|
|
div = div + "<div style='height:30px;'>" + array[i] + "</div>";
|
|
|
return div;
|
|
|
}
|
|
|
}, {
|
...
|
...
|
@@ -288,20 +285,16 @@ |
|
|
}
|
|
|
}, {
|
|
|
//运行详情
|
|
|
title: "运行详情",
|
|
|
width: "80px",
|
|
|
title: "详情",
|
|
|
width: "60px",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
var div = $("<div style=' padding:10px;'>");
|
|
|
var div = $("<div style=''>");
|
|
|
|
|
|
//查看volume——instance信息
|
|
|
var shotTaskInfoBtn = $("<button data-target='#updateModal' data-toggle='modal'>").addClass("btn btn-xs btn-primary").html("INFO").appendTo(div);
|
|
|
shotTaskInfoBtn.click(function () {
|
|
|
showRedisInfo(rowData);
|
|
|
});
|
|
|
div.append(" ");
|
|
|
div.append(" ");
|
|
|
div.append(" ");
|
|
|
|
|
|
return div;
|
|
|
}
|
|
|
}],
|
...
|
...
|
|