Authored by simba

update

... ... @@ -89,6 +89,14 @@
},
onLoadSuccess : function(data) {
$("#hostInfoForm #hostIp").prop("readonly",true);
//$(":checkbox[value='"+java+"']").prop("checked",true);
if(data.tags != null && data.tags != ""){
var tags=data.tags.substr(0,data.tags.length-1);
var tagArr=tags.split(",");
for(i=0;i<tagArr.length;i++){
$(":checkbox[value='"+tagArr[i]+"']").prop("checked",true);
}
}
}
});
... ...
... ... @@ -68,29 +68,16 @@
columnAutoWidth: false,
url: contextPath + "hostGroup/getHostGroups",
striped: true,
title: "主机信息列表",
title: "标签信息列表",
pagination: true,
pageSize: 10,
loadFilter: function (data) {
return defaultLoadFilter(data);
},
columns: [{
title: "ID",
field: "id",
width: "10%"
}, {
title: "标签名",
field: "groupName",
width: "20%"
}, {
title: "创建时间",
field: "createTime",
width: "20%"
}, {
title: "更新时间",
field: "updateTime",
width: "20%"
width: "30%"
}, {
title: "操作",
formatter: function (value, rowData, rowIndex) {
... ...
... ... @@ -79,10 +79,6 @@
return defaultLoadFilter(data);
},
columns : [{
title : "ID",
field : "id",
width : "5%"
}, {
title : "主机别名",
field : "alias",
width : "12%"
... ... @@ -113,14 +109,6 @@
},
width : "12%"
}, {
title : "创建时间",
field : "createTime",
width : "10%"
}, {
title : "更新时间",
field : "updateTime",
width : "10%"
},{
title : "操作",
field : "op",
... ...
... ... @@ -62,12 +62,6 @@
return defaultLoadFilter(data);
},
columns: [{
title: "ID",
field: "id",
formatter : function(value, rowData, rowIndex) {
return rowIndex;
}
},{
title: "IP",
field: "hostIp",
formatter : function(value, rowData, rowIndex) {
... ...