Authored by qinchao

修改bug

... ... @@ -16,6 +16,7 @@ public class HostInfoReq extends PageRequest {
private String hostIp;
// 1 只显示标签为空,0 只显示标签不为空 ,“” 全部显示
private String onlyShowTagsIsNull;
private int groupId;
... ...
... ... @@ -104,9 +104,15 @@
<option value="3">其他</option>
</select>
</div>
<button id="addHostInfoBtn" class="btn btn-success" style="margin-left: 18px;">新增主机</button>
<button class="btn btn-danger" onclick="synHostInfo()" style="margin-left: 18px;">同步主机</button>
<div class="input-group" style="float: left;">
<span class="input-group-addon">过滤:</span>
<select id="tagsIsNull" class="form-control">
<option value="">全部主机</option>
<option value="1">标签为空</option>
<option value="0">标签不空</option>
</select>
</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button id="addHostInfoBtn" class="btn btn-success" style="margin-left: 18px;">新增主机</button>
</div>
</div>
<br/>
... ... @@ -128,20 +134,10 @@
<select id="tags" name="tags" class="form-control select2" style="width: 500px" multiple="multiple"></select>
</div>
<div class="input-group" style="float: left;">
<%-- <span class="input-group-addon">标签为空:</span>--%>
<%--
<span class="input-group-addon" style="margin-left: 15px;">空标签</span>
<input id="tagsIsNull" name="tags" style="margin-left:10px;" type="checkbox" />--%>
<span class="input-group-addon">过滤:</span>
<select id="tagsIsNull" class="form-control">
<option value="">全部主机</option>
<option value="1">标签为空</option>
</select>
</div>
<button id="searchHostInfoBtn" class="btn btn-primary" style="margin-left: 18px;">搜索</button>
<button class="btn btn-primary" onclick="setHostTags()" style="margin-left: 18px;">维护标签</button>
<button class="btn btn-danger" onclick="synHostInfo()" style="margin-left: 18px;">同步主机</button>
</div>
</div>
... ... @@ -455,7 +451,6 @@
success : function(data) {
if( data && data.code == 200){
$(dialog).dialog("hide");
localAlert('修改标签成功!');
$("#hostInfoTable").table("load");
} else{
$("#tagsInfoForm #messageAlert").alerts({
... ...