...
|
...
|
@@ -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) {
|
...
|
...
|
|