IP REUSE POLICY Group Name修改为Group 非空
字典标识删除失败bug更改
This commit is contained in:
@@ -24,23 +24,16 @@ import com.nis.web.controller.BaseController;
|
|||||||
public class DictController extends BaseController {
|
public class DictController extends BaseController {
|
||||||
|
|
||||||
|
|
||||||
@ModelAttribute
|
|
||||||
public SysDataDictionaryName get(@RequestParam(required=false) Integer id) {
|
|
||||||
if (!StringUtil.isEmpty(id)){
|
|
||||||
return dictService.getDictByIdWithRelation(id);
|
|
||||||
}else{
|
|
||||||
return new SysDataDictionaryName();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@RequiresPermissions("sys:dict:view")
|
@RequiresPermissions("sys:dict:view")
|
||||||
@RequestMapping(value = {"list", ""})
|
@RequestMapping(value = {"list", ""})
|
||||||
public String list(SysDataDictionaryName sysDictName,HttpServletRequest request, HttpServletResponse response, Model model) {
|
public String list(SysDataDictionaryName sysDictName,HttpServletRequest request, HttpServletResponse response, Model model) {
|
||||||
|
if(sysDictName ==null){
|
||||||
|
sysDictName=new SysDataDictionaryName();
|
||||||
|
}
|
||||||
|
|
||||||
Page<SysDataDictionaryName> page = dictService.findDictList(new Page<SysDataDictionaryName>(request, response), sysDictName);
|
Page<SysDataDictionaryName> page = dictService.findDictList(new Page<SysDataDictionaryName>(request, response), sysDictName);
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
|
model.addAttribute("sysDataDictionaryName",sysDictName);
|
||||||
|
|
||||||
return "/sys/dictList";
|
return "/sys/dictList";
|
||||||
}
|
}
|
||||||
@@ -54,8 +47,14 @@ public class DictController extends BaseController {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value={"form"})
|
@RequestMapping(value={"form"})
|
||||||
public String form(SysDataDictionaryName sysDictName, Model model) {
|
public String form(@RequestParam(required=false) Integer id, Model model) {
|
||||||
|
SysDataDictionaryName sysDictName=null;
|
||||||
|
if (!StringUtil.isEmpty(id)){
|
||||||
|
sysDictName= dictService.getDictByIdWithRelation(id);
|
||||||
|
}else{
|
||||||
|
sysDictName=new SysDataDictionaryName();
|
||||||
|
}
|
||||||
|
model.addAttribute("sysDataDictionaryName",sysDictName);
|
||||||
return "/sys/dictForm";
|
return "/sys/dictForm";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -145,7 +145,6 @@
|
|||||||
mark = #{mark,jdbcType=VARCHAR},
|
mark = #{mark,jdbcType=VARCHAR},
|
||||||
remark = #{remark,jdbcType=VARCHAR},
|
remark = #{remark,jdbcType=VARCHAR},
|
||||||
revision = #{revision,jdbcType=VARCHAR},
|
revision = #{revision,jdbcType=VARCHAR},
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
||||||
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
||||||
status = #{status,jdbcType=INTEGER}
|
status = #{status,jdbcType=INTEGER}
|
||||||
where id = #{id,jdbcType=INTEGER}
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
|||||||
@@ -166,9 +166,10 @@ $(function(){
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="group_name"/></label>
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="group"/></label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<select id="dnsStrategyId" name="dnsStrategyId" class="selectpicker show-tick form-control required">
|
<select id="dnsStrategyId" name="dnsStrategyId" class="selectpicker show-tick form-control required">
|
||||||
|
<option value="" <c:if test="${empty _cfg.dnsStrategyId }">selected</c:if>><spring:message code="select"/></option>
|
||||||
<c:forEach items="${policyGroups }" var="policyGroup">
|
<c:forEach items="${policyGroups }" var="policyGroup">
|
||||||
<option value="${policyGroup.groupId}" <c:if test="${_cfg.dnsStrategyId==policyGroup.groupId }">selected</c:if>><spring:message code="${policyGroup.groupName}"/></option>
|
<option value="${policyGroup.groupId}" <c:if test="${_cfg.dnsStrategyId==policyGroup.groupId }">selected</c:if>><spring:message code="${policyGroup.groupName}"/></option>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
|
|||||||
@@ -296,7 +296,7 @@
|
|||||||
<th exportColumn="whether_area_block"><spring:message code="whether_area_block"/></th>
|
<th exportColumn="whether_area_block"><spring:message code="whether_area_block"/></th>
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${specialFunctionId ne null and specialFunctionId eq 'ipmulitiplex'}">
|
<c:if test="${specialFunctionId ne null and specialFunctionId eq 'ipmulitiplex'}">
|
||||||
<th exportColumn="group_name"><spring:message code="group_name"/></th>
|
<th exportColumn="group_name"><spring:message code="group"/></th>
|
||||||
<th exportColumn="ir_type"><spring:message code="ir_type"/></th>
|
<th exportColumn="ir_type"><spring:message code="ir_type"/></th>
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${specialFunctionId ne null and specialFunctionId eq 'ipratelimit'}">
|
<c:if test="${specialFunctionId ne null and specialFunctionId eq 'ipratelimit'}">
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
<form:select path="seltype" class="selectpicker select2 input-small" >
|
<form:select path="seltype" class="selectpicker select2 input-small" >
|
||||||
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
||||||
<form:option value="srcIpAddress"><spring:message code="ip"></spring:message></form:option>
|
<form:option value="srcIpAddress"><spring:message code="ip"></spring:message></form:option>
|
||||||
<form:option value="groupName"><spring:message code="group_name"></spring:message></form:option>
|
<form:option value="groupName"><spring:message code="group"></spring:message></form:option>
|
||||||
</form:select>
|
</form:select>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -262,7 +262,7 @@
|
|||||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||||
<%-- <th><spring:message code="seq"/></th> --%>
|
<%-- <th><spring:message code="seq"/></th> --%>
|
||||||
<th><spring:message code="config_describe"/></th>
|
<th><spring:message code="config_describe"/></th>
|
||||||
<th><spring:message code="group_name"/></th>
|
<th><spring:message code="group"/></th>
|
||||||
<th><spring:message code="ip"/></th>
|
<th><spring:message code="ip"/></th>
|
||||||
<th><spring:message code="port"/></th>
|
<th><spring:message code="port"/></th>
|
||||||
<%-- <th><spring:message code="protocol"/></th>
|
<%-- <th><spring:message code="protocol"/></th>
|
||||||
|
|||||||
@@ -41,7 +41,6 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
submitHandler: function(form){
|
submitHandler: function(form){
|
||||||
|
|
||||||
if(!validateItem()) {
|
if(!validateItem()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user