Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
FengRuwei
9 years ago
Commit
8c8f75b7d6fc8af8e53dcc738fe23454b08ee746
1 parent
98d422a2
add 添加服务对象回调方法
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
monitor-ui-web/src/main/webapp/jsp/table.jsp
monitor-ui-web/src/main/webapp/jsp/table.jsp
View file @
8c8f75b
...
...
@@ -126,7 +126,6 @@
}
return strPath;
}
var openTree = function (node_id, level) {
...
...
@@ -186,6 +185,15 @@
return rel;
};
var addMObjType=function(nodeid,name){
var id=nodeId2id(nodeid);
var path=getPath(nodeid);
console.log("id: "+id +" path: "+path +" name :"+name);
}
var doAddType = function () {
var pid = $('#tx_type_id').val();
var name = $('#tx_new_type_name').val();
...
...
@@ -217,6 +225,11 @@
}
);
}
$("#btn4type").click(function () {
console.log("frw");
if ($("#tx_type_action").val() == "add") {
...
...
@@ -297,8 +310,8 @@
"action": function (obj) {
var inst = jQuery.jstree.reference(obj.reference);
var clickedNode = inst.get_node(obj.reference);
console.log(obj);
addMObjType(clickedNode);
console.log("add minfo--clickedNode's id is : " + clickedNode.id);
addMObjType(clickedNode.id,clickedNode.text);
}
}
}
...
...
@@ -362,4 +375,4 @@
</div>
</div>
</div>
</div>
\ No newline at end of file
</div>
...
...
Please
register
or
login
to post a comment