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
4c65fa61379793f53613a6fe1034448083ac0542
1 parent
b79e165d
主机管理
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
87 deletions
monitor-ui-web/src/main/webapp/jsp/host/setHostTags.jsp
monitor-ui-web/src/main/webapp/jsp/host/setHostTags.jsp
View file @
4c65fa6
...
...
@@ -19,23 +19,7 @@
<label class="col-sm-2 control-label">云类型:</label>
<div class="col-sm-8">
<select id="cloudTags" class="form-control" style="width:150px;">
<option value="">全部</option>
<c:choose>
<c:when test="${param.oldCloudTags=='1'}">
<option value="1" selected>AWS</option>
</c:when>
<c:otherwise>
<option value="1">AWS</option>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${param.oldCloudTags=='2'}">
<option value="2" selected>腾讯云</option>
</c:when>
<c:otherwise>
<option value="2">腾讯云</option>
</c:otherwise>
</c:choose>
<option value="2" selected>腾讯云</option>
</select>
</div>
...
...
@@ -65,38 +49,6 @@
}
$(function () {
/* $.ajax({
url : contextPath +"/hostGroup/getAllTagsGroupByType",
type : 'post',
async : false,
dataType : "json",
success : function(data) {
var contentHtml='';
contentHtml += "<table border=1>";
for (var key in tagTypes) {
contentHtml += "<tr>";
contentHtml += "<td width='60'>";
contentHtml += tagTypes[key] ;
contentHtml += "</td>";
contentHtml += "<td>";
$.each(data.data[key],function(n,value) {
if(n>0&&n%6==0){
contentHtml+='</br>';
}
contentHtml+='<input type="checkbox" name="appName" value="'+value.groupName+'">' +value.groupName+' ';
});
contentHtml += "</td>";
contentHtml += "</tr>";
}
contentHtml += "</table>";
$("#appNameContent").html(contentHtml);
}
});*/
$.ajax({
url : contextPath +"/hostGroup/getAllTagsGroupTreegridByType",
type : 'post',
...
...
@@ -111,11 +63,7 @@
contentHtml += tagTypes[key] ;
contentHtml += "</td>";
contentHtml += "<td>";
if(key=="app"||key=="mid"){
contentHtml += constructTr(data.data[key],1);
}else{
contentHtml += constructTr(data.data[key]);
}
contentHtml += constructTr(data.data[key]);
contentHtml += "</td>";
contentHtml += "</tr>";
...
...
@@ -137,39 +85,6 @@
}
}
function constructTrLevel2(treeData,levelnum){
var contentHtml="";
$.each(treeData,function(n,value) {
if(!endWithChars(contentHtml,"</br>")){
if((n>0&&n%6==0)){
contentHtml+='</br>';
}
}
contentHtml+='<input type="checkbox" name="appName" value="'+value.groupName+'">' +value.groupName+' ';
if(value.children!=null&&value.children.length>0){
levelnum++;
if(!endWithChars(contentHtml,"</br>")){
contentHtml+='</br>';
}
if(levelnum<=3){
if(levelnum==2){
contentHtml+=' ';
}else {
contentHtml+=' ';
contentHtml+=' ';
}
}
// }
contentHtml += constructTrLevel2(value.children,levelnum);
levelnum--;
if(!endWithChars(contentHtml,"</br>")){
contentHtml+='</br>';
}
}
});
return contentHtml;
}
function constructTr(treeData){
var contentHtml="";
$.each(treeData,function(n,value) {
...
...
Please
register
or
login
to post a comment