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
7d2d532616bc73ac2fd274371975ccea5365e34b
1 parent
f9271878
主机管理
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
monitor-ui-web/src/main/webapp/jsp/host/editHostInfo.jsp
monitor-ui-web/src/main/webapp/jsp/host/hostInfoList.jsp
monitor-ui-web/src/main/webapp/jsp/host/setHostTags.jsp
monitor-ui-web/src/main/webapp/jsp/host/editHostInfo.jsp
View file @
7d2d532
...
...
@@ -123,7 +123,7 @@
if(n>0&&n%6==0){
contentHtml+='</br>';
}
contentHtml+='<input type="checkbox" name="appName" onchange="autoHostName();" t
ext="'+value.groupName+'" value="'+value.id
+'">' +value.groupName+' ';
contentHtml+='<input type="checkbox" name="appName" onchange="autoHostName();" t
agid="'+value.id+'" value="'+value.groupName
+'">' +value.groupName+' ';
if(value.children!=null&&value.children.length>0){
contentHtml += constructTr(value.children);
}
...
...
monitor-ui-web/src/main/webapp/jsp/host/hostInfoList.jsp
View file @
7d2d532
...
...
@@ -354,11 +354,11 @@
var
tagids
=
""
;
var
tags
=
""
;
$
(
"#hostInfoForm input[name='appName']:checked"
).
each
(
function
(){
if
(
tagids
.
indexOf
(
$
(
this
).
attr
(
'value'
)
+
','
)
<
0
){
tagids
+=
$
(
this
).
attr
(
'value'
)
+
','
;
if
(
tagids
.
indexOf
(
$
(
this
).
attr
(
'tagid'
)
+
','
)
<
0
){
tagids
+=
$
(
this
).
attr
(
'tagid'
)
+
','
;
}
if
(
tags
.
indexOf
(
$
(
this
).
attr
(
'text'
)
+
','
)
<
0
){
tags
+=
$
(
this
).
attr
(
'text'
)
+
','
;
if
(
tags
.
indexOf
(
$
(
this
).
attr
(
'value'
)
+
','
)
<
0
){
tags
+=
$
(
this
).
attr
(
'value'
)
+
','
;
}
});
var
cloudDetailType
=
$
(
"#hostInfoForm #cloudDetailType"
).
val
();
...
...
@@ -451,11 +451,11 @@
var
tagids
=
""
;
var
tags
=
""
;
$
(
"#tagsInfoForm input[name='appName']:checked"
).
each
(
function
(){
if
(
tagids
.
indexOf
(
$
(
this
).
attr
(
'value'
)
+
','
)
<
0
){
tagids
+=
$
(
this
).
attr
(
'value'
)
+
','
;
if
(
tagids
.
indexOf
(
$
(
this
).
attr
(
'tagid'
)
+
','
)
<
0
){
tagids
+=
$
(
this
).
attr
(
'tagid'
)
+
','
;
}
if
(
tags
.
indexOf
(
$
(
this
).
attr
(
'text'
)
+
','
)
<
0
){
tags
+=
$
(
this
).
attr
(
'text'
)
+
','
;
if
(
tags
.
indexOf
(
$
(
this
).
attr
(
'value'
)
+
','
)
<
0
){
tags
+=
$
(
this
).
attr
(
'value'
)
+
','
;
}
});
if
(
paramObj
.
hostIds
==
null
||
paramObj
.
hostIds
.
length
==
0
){
...
...
monitor-ui-web/src/main/webapp/jsp/host/setHostTags.jsp
View file @
7d2d532
...
...
@@ -176,7 +176,7 @@
if(n>0&&n%6==0){
contentHtml+='</br>';
}
contentHtml+='<input type="checkbox" name="appName" onchange="autoHostName();" t
ext="'+value.groupName+'" value="'+value.id
+'">' +value.groupName+' ';
contentHtml+='<input type="checkbox" name="appName" onchange="autoHostName();" t
agid="'+value.id+'" value="'+value.groupName
+'">' +value.groupName+' ';
if(value.children!=null&&value.children.length>0){
contentHtml += constructTr(value.children);
}
...
...
Please
register
or
login
to post a comment