分组配置管理GroupName改为可手动输入
This commit is contained in:
@@ -49,7 +49,30 @@
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
});
|
||||
|
||||
|
||||
var availableTags = [];
|
||||
var pathName = window.document.location.pathname.substring(0,window.document.location.pathname.lastIndexOf("/nis")+4);
|
||||
$.ajax({
|
||||
type:'get',
|
||||
url:pathName+'/basics/commonGroup/ajaxGetGroupInfoByType?groupType=7',
|
||||
dataType:"json",
|
||||
success:function(data){
|
||||
if(data != null){
|
||||
for(var i in data){
|
||||
availableTags.push(data[i].groupName);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$("#srearchInput").autocomplete({
|
||||
source: availableTags
|
||||
});
|
||||
|
||||
window.onresize = function(){
|
||||
$("#ui-id-1").hide();
|
||||
};
|
||||
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
@@ -119,21 +142,17 @@
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="group_name"/></label>
|
||||
<label for="srearchInput" class="control-label col-md-3"><font color="red">*</font><spring:message code="group_name"/></label>
|
||||
<div class="col-md-6">
|
||||
<%-- <input class="form-control required digits asnMustExists" type="text" name="${cfgName}.cfgKeywords" value="${cfg.cfgKeywords}" ctx="${ctx}"> --%>
|
||||
<select name="groupId" data-live-search="true" data-live-search-placeholder="search" class="selectpicker form-control required">
|
||||
<option value=""><spring:message code="select"/></option>
|
||||
<c:forEach items="${policyGroupInfos}" var="groupInfo">
|
||||
<option value="${groupInfo.serviceGroupId}"
|
||||
<c:if test="${_cfg.groupId eq groupInfo.serviceGroupId }">
|
||||
selected
|
||||
</c:if>
|
||||
>${groupInfo.groupName}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
<c:forEach items="${policyGroupInfos}" var="ipGroupInfo">
|
||||
<c:if test="${_cfg.groupId eq ipGroupInfo.serviceGroupId }">
|
||||
<c:set var="cfgGroupName" value="${ipGroupInfo.groupName }"></c:set>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<span class="input-icon input-icon-md" style="display: inline; left: 90%;"><i class="fa fa-search"></i></span>
|
||||
<input id="srearchInput" class="form-control" name="groupName" value="${cfgGroupName }" autocomplete="false" >
|
||||
</div>
|
||||
<div for="groupId"></div>
|
||||
<div for="groupName"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user