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
qinchao
7 years ago
Commit
88268e6003b404a61efbe29c4b45da69b5e694bb
1 parent
3d0e97c0
监控对象修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
15 deletions
monitor-ui-web/src/main/webapp/jsp/zkMonitor/zkMonitorList4Log4j.jsp
monitor-ui-web/src/main/webapp/script/yoho.type.zktree.log4j.js
monitor-ui-web/src/main/webapp/jsp/zkMonitor/zkMonitorList4Log4j.jsp
View file @
88268e6
...
...
@@ -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
();
...
...
monitor-ui-web/src/main/webapp/script/yoho.type.zktree.log4j.js
View file @
88268e6
...
...
@@ -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
();
...
...
Please
register
or
login
to post a comment