Authored by qinchao

监控对象修改

... ... @@ -140,7 +140,7 @@
</div>
</body>
<script type="text/javascript" src="<%=basePath %>/script/yoho.type.zktree.log4j.js"></script>
<script type="text/javascript" src="<%=basePath %>/script/yoho.type.zktree.log4j.js?v=20180320"></script>
<script>
function toDetail(rowData,ip){
$("#detailTable").show();
... ...
... ... @@ -178,22 +178,13 @@ function searchType(ip, children, nodeId){
title: "名称",
field: "name",
formatter: function (value, rowData, rowIndex) {
var div = $("<div>");
var input = $("<input type=\"button\">").addClass("form-control").attr({
id :"name",
name : "name",
style : "border: none;",
value : value
}).appendTo(div);
input.click(function () {
toDetail(rowData,ip);
});
return div;
toDetail(rowData,ip);//获取到数据之后,直接展示详情---
return value;
}
}, {
title: "路径",
field: "root"
}],
}]
});
}
... ... @@ -234,8 +225,8 @@ $('#jstree').jstree({
}
}).bind("changed.jstree",
function (e, data) {
console.log(data);
console.log("Checked: " + data.node.text);
//console.log(data);
//console.log("Checked: " + data.node.text);
searchType(data.node.text, data.node.children, data.node.a_attr.id);
});
refreshTypeTree();
... ...