diff --git a/src/main/java/com/nis/domain/log/NtcDdosLog.java b/src/main/java/com/nis/domain/log/NtcDdosLog.java index 32ccf19a1..291056f7f 100644 --- a/src/main/java/com/nis/domain/log/NtcDdosLog.java +++ b/src/main/java/com/nis/domain/log/NtcDdosLog.java @@ -26,7 +26,7 @@ public class NtcDdosLog extends BaseLogEntity { @ApiModelProperty(value = "攻击累积字节数", required = true) protected String attackTotalByte; @ApiModelProperty(value = "攻击流量是否被丢弃", required = true) - protected Integer isBlcok; + protected Integer isBlock; public Integer getAttackType() { @@ -71,11 +71,11 @@ public class NtcDdosLog extends BaseLogEntity { public void setAttackTotalByte(String attackTotalByte) { this.attackTotalByte = attackTotalByte; } - public Integer getIsBlcok() { - return isBlcok; + public Integer getIsBlock() { + return isBlock; } - public void setIsBlcok(Integer isBlcok) { - this.isBlcok = isBlcok; + public void setIsBlock(Integer isBlock) { + this.isBlock = isBlock; } } diff --git a/src/main/java/com/nis/web/controller/configuration/ntc/IpController.java b/src/main/java/com/nis/web/controller/configuration/ntc/IpController.java index f7809f529..a527bc3f8 100644 --- a/src/main/java/com/nis/web/controller/configuration/ntc/IpController.java +++ b/src/main/java/com/nis/web/controller/configuration/ntc/IpController.java @@ -24,24 +24,17 @@ import com.nis.domain.FunctionRegionDict; import com.nis.domain.FunctionServiceDict; import com.nis.domain.Page; import com.nis.domain.SysDataDictionaryItem; -import com.nis.domain.basics.PolicyGroupInfo; -import com.nis.domain.configuration.BaseIpCfg; import com.nis.domain.configuration.CfgIndexInfo; import com.nis.domain.configuration.IpPortCfg; import com.nis.domain.configuration.NtcSubscribeIdCfg; -import com.nis.domain.configuration.template.IpAddrTemplate; import com.nis.domain.configuration.template.IpAllTemplate; -import com.nis.domain.configuration.template.IpsecTemplate; -import com.nis.domain.configuration.template.TunnelIpTemplate; import com.nis.domain.specific.ConfigGroupInfo; import com.nis.exceptions.MaatConvertException; import com.nis.util.Constants; import com.nis.util.DictUtils; import com.nis.util.StringUtil; -import com.nis.util.excel.ExcelField; import com.nis.util.excel.ExportExcel; import com.nis.web.controller.BaseController; -import com.nis.web.controller.configuration.CommonController; import com.nis.web.security.UserUtils; /** diff --git a/src/main/java/com/nis/web/controller/log/ntc/DdosLogController.java b/src/main/java/com/nis/web/controller/log/ntc/DdosLogController.java index 65eeb3f7a..987de3a8c 100644 --- a/src/main/java/com/nis/web/controller/log/ntc/DdosLogController.java +++ b/src/main/java/com/nis/web/controller/log/ntc/DdosLogController.java @@ -57,6 +57,9 @@ public class DdosLogController extends BaseController{ Map params=new HashMap<>(); params.put("pageSize", page.getPageSize()); params.put("pageNo", page.getPageNo()); + if(entry!=null&&entry.getIsBlock()!=null) { + params.put("searchIsBlock", entry.getIsBlock()); + } //查询值判断 initLogSearchValue(entry,params); diff --git a/src/main/java/com/nis/web/controller/sys/UserController.java b/src/main/java/com/nis/web/controller/sys/UserController.java index 7017eba3d..198b828f5 100644 --- a/src/main/java/com/nis/web/controller/sys/UserController.java +++ b/src/main/java/com/nis/web/controller/sys/UserController.java @@ -179,6 +179,9 @@ public class UserController extends BaseController{ @RequiresPermissions("sys:user:view") @RequestMapping(value = {"list"}) public String list(SysUser user, HttpServletRequest request, HttpServletResponse response, Model model) { + if(UserUtils.getUser().getIdentity().equals(0)){ + user.setIdentity(0); + } Page page = userService.findUser(new Page(request, response), user); model.addAttribute("page", page); return "/sys/userList"; diff --git a/src/main/java/com/nis/web/dao/UserDao.xml b/src/main/java/com/nis/web/dao/UserDao.xml index 8e573947c..c067e91e0 100644 --- a/src/main/java/com/nis/web/dao/UserDao.xml +++ b/src/main/java/com/nis/web/dao/UserDao.xml @@ -292,7 +292,9 @@ AND u.login_id=#{loginId} - + + AND u.identity=#{identity} + AND u.name like diff --git a/src/main/java/com/nis/web/dao/configuration/IpCfgDao.xml b/src/main/java/com/nis/web/dao/configuration/IpCfgDao.xml index 1afd83ab4..6e4d05aa8 100644 --- a/src/main/java/com/nis/web/dao/configuration/IpCfgDao.xml +++ b/src/main/java/com/nis/web/dao/configuration/IpCfgDao.xml @@ -205,7 +205,8 @@ ,a.is_valid,a.is_audit,a.creator_id,a.create_time,a.editor_id ,a.edit_time,a.auditor_id,a.audit_time,a.service_id,a.request_id, a.compile_id,a.is_area_effective,a.classify,a.attribute,a.lable - ,a.area_effective_ids,a.function_id,a.cfg_region_code + ,a.area_effective_ids,a.function_id,a.cfg_region_code,a.user_region1,a.user_region2, + a.user_region3,a.user_region4,a.user_region5 + + + + + + +
+ +
diff --git a/src/main/webapp/WEB-INF/views/cfg/ipaddr/ipForm.jsp b/src/main/webapp/WEB-INF/views/cfg/ipaddr/ipForm.jsp index 60fa48ed1..e18f689c8 100644 --- a/src/main/webapp/WEB-INF/views/cfg/ipaddr/ipForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/ipaddr/ipForm.jsp @@ -32,7 +32,12 @@ }else{ hideAction(1,asnRegionCode); } - + $("[name$='protocol']").each(function(){ + showHideIPSECProtocol($(this)); + }); + $("[name$='protocol']").on("change",function(){ + showHideIPSECProtocol($(this)); + }); if(isAsn==0){ $("[class~='glyphicon-plus'][class~='ipPortList']").click(); $("[class~='boxSolid'][class~='asn']").find(".glyphicon-remove").click(); @@ -108,6 +113,7 @@ changeIPVal(tabInfo); } processAction(isAsn,tabInfo); + $("[name$='protocol']").change(); /* if(tabInfo){ tabInfo.find("[name$='cfgType']").val(cfgType); tabInfo.find("[name$='cfgRegionCode']").val(cfgRegionCode); @@ -372,6 +378,23 @@ var processAction=function(configType,obj){ } } +var showHideIPSECProtocol=function(obj){ + var name=$(obj).attr("name"); + var userRegion1=$("select[name='"+name.replace("protocol","userRegion1")+"']"); + if($(obj).val()==8){ + if(userRegion1){ + userRegion1.removeAttr("disabled"); + userRegion1.parents(".ipsecProtocol").removeClass("hidden"); + userRegion1.selectpicker("refresh"); + } + }else{ + if(userRegion1){ + userRegion1.attr("disabled","disabled"); + userRegion1.parents(".ipsecProtocol").addClass("hidden"); + userRegion1.selectpicker("refresh"); + } + } +} diff --git a/src/main/webapp/WEB-INF/views/log/ntc/ddosList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/ddosList.jsp index a4185893f..46024a4c4 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/ddosList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/ddosList.jsp @@ -31,7 +31,8 @@ $(document).ready(function(){

- + +

@@ -44,6 +45,7 @@ $(document).ready(function(){ + @@ -89,7 +91,7 @@ $(document).ready(function(){
- - <%--
- -
- - - 工作流组用户组类型(security-role:管理员、assignment:可进行任务分配、user:普通用户) - - - - - - - -
-
- --%> + + + + +
+ +
+ + + <%-- --%> + + + + <%-- + --%> +
+
+
+ + + +
diff --git a/src/main/webapp/WEB-INF/views/sys/roleList.jsp b/src/main/webapp/WEB-INF/views/sys/roleList.jsp index d67d657fc..8830ee575 100644 --- a/src/main/webapp/WEB-INF/views/sys/roleList.jsp +++ b/src/main/webapp/WEB-INF/views/sys/roleList.jsp @@ -40,18 +40,36 @@ - + + + + + + + + + + + - - - - - - + + + + + + + + + + +
${role.name}${fns:getDictLabel('SYS_DATA_SCOPE',role.dataScope,'无')}${fns:abbr(role.remark,30)} - <%-- --%> - - ', this.href)"> -
${role.name}${fns:getDictLabel('SYS_DATA_SCOPE',role.dataScope,'无')}${fns:abbr(role.remark,30)} + + + + <%-- --%> + + ', this.href)"> +
diff --git a/src/main/webapp/WEB-INF/views/sys/userForm.jsp b/src/main/webapp/WEB-INF/views/sys/userForm.jsp index 31db4a48c..84a264131 100644 --- a/src/main/webapp/WEB-INF/views/sys/userForm.jsp +++ b/src/main/webapp/WEB-INF/views/sys/userForm.jsp @@ -12,12 +12,12 @@ $("#inputForm").validate({ rules: { loginId: {remote: "${ctx}/sys/user/checkLoginName?oldLoginId=" + encodeURIComponent('${user.loginId}')}, - // 'office.name': {officeIsValid: true }, + 'office.name': {officeIsValid: true }, 'entity.name': {required: true } }, messages: { loginId: {remote: ""}, - // 'office.name': {officeIsValid: ""}, + 'office.name': {officeIsValid: ""}, confirmNewPassword: {equalTo: ""} }, submitHandler: function(form){ @@ -121,18 +121,18 @@
*
- + - <%--
- +
+
+ title="company" url="/sys/office/treeData" cssClass="required form-control" notAllowSelectRoot="true"/>
-
+ <%--
*
- - <%--
- -
- - - - - -
- -
--%> + + +
+ +
+ + + + + +
+ +
+
+ + + +
<%--
@@ -201,10 +207,12 @@
- + + + * @@ -229,7 +237,9 @@
+ +
diff --git a/src/main/webapp/WEB-INF/views/sys/userList.jsp b/src/main/webapp/WEB-INF/views/sys/userList.jsp index 8473ff2d7..987273a67 100644 --- a/src/main/webapp/WEB-INF/views/sys/userList.jsp +++ b/src/main/webapp/WEB-INF/views/sys/userList.jsp @@ -119,11 +119,14 @@ class="table table-striped table-bordered table-condensed"> - <%-- - --%> + + <%-- --%> - <%-- --%> + + + + <%-- --%> <%--角色 --%> @@ -135,14 +138,26 @@ + ${user.loginId} ${user.name} + ${user.company.name } + + + + + + - ', this.href)"> + + + ', this.href)"> + + diff --git a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js index fb95cefa0..8b41e8b02 100644 --- a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js +++ b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js @@ -237,8 +237,8 @@ jQuery.validator.addMethod("protocolPort",function(value, element) { var protocolElement=$("[name='"+name.replace("destPort","protocol")+"']"); protocolVal=protocolElement.val(); } - if((protocolVal==0&&srcPortVal>0)||(protocolVal==0&&destPortVal>0)){ - $.validator.messages.protocolPort=$.validator.messages.protocolPort; + if(protocolVal==0){ + return true; }else if((protocolVal!=tcp&&protocolVal!=udp&&srcPortVal>0)||(protocolVal!=tcp&&protocolVal!=udp&&destPortVal>0)){ $.validator.messages.protocolPort=$.validator.messages.protocolPort1; return false; @@ -250,7 +250,7 @@ jQuery.validator.addMethod("protocolPort",function(value, element) { //ip地址校验 jQuery.validator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1-9]\d|1\d{2}|2[0-4]\d|25[0-5])){3})|(:(:[0-9A-Fa-f]{1,4}){0,5}:(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])){3}))$/; var ipv4_ip_regexp=/^(0|1\d{2}|2[0-4]\d|25[0-5]|[1-9]\d|[1-9])\.(0|1\d{2}|2[0-4]\d|25[0-5]|[1-9]\d|\d)\.(0|1\d{2}|2[0-4]\d|25[0-5]|[1-9]\d|\d)\.(0|1\d{2}|2[0-4]\d|25[0-5]|[1-9]\d|\d)$/; @@ -370,7 +370,7 @@ jQuery.validator.addMethod("ipCheck",function(value, element) { $.validator.messages.ipCheck=$.validator.messages.ipPart; return false; //}else if(!/^(0|2|4|8|16|32|64|128)$/.test(ipMaskArr[1])){ - }else if(!/^(128)$/.test(ipMaskArr[1])){ + }else if(!/^([2-9]|[1-9][0-9]|1[0-2][0-8])$/.test(ipMaskArr[1])){ $.validator.messages.ipCheck=$.validator.messages.ipv6MaskPart; return false; } else{ @@ -410,7 +410,6 @@ jQuery.validator.addMethod("ipCheck",function(value, element) { }else if(typeInt==46){ var name=$(element).attr("name"); if(name.indexOf("srcIpAddress")>-1){ - console.log("client ip must ipv4"); if(ipPattern==1){//ip/掩码格式 if(this.optional(element)||(/^(\d+)\.(\d+)\.(\d+)\.(\d+)\/(\d+)$/.test(value) && (RegExp.$1 <256 && RegExp.$2<256 && RegExp.$3<256 && RegExp.$4<256 && RegExp.$5<=32))){ if(ipv4_ip_subnet_regexp.test(value)){ @@ -468,7 +467,6 @@ jQuery.validator.addMethod("ipCheck",function(value, element) { } } }else if(name.indexOf("destIpAddress")>-1){ - console.log("server ip must ipv6"); if(ipPattern==1){//ip/掩码格式 if(this.optional(element)||ipv6_ip_subnet_regexp.test(value)){ return true; @@ -485,7 +483,7 @@ jQuery.validator.addMethod("ipCheck",function(value, element) { $.validator.messages.ipCheck=$.validator.messages.ipPart; return false; //}else if(!/^(0|2|4|8|16|32|64|128)$/.test(ipMaskArr[1])){ - }else if(!/^(128)$/.test(ipMaskArr[1])){ + }else if(!/^([2-9]|[1-9][0-9]|1[0-2][0-8])$/.test(ipMaskArr[1])){ $.validator.messages.ipCheck=$.validator.messages.ipv6MaskPart; return false; } else{ @@ -526,7 +524,6 @@ jQuery.validator.addMethod("ipCheck",function(value, element) { }else if(typeInt==64){ var name=$(element).attr("name"); if(name.indexOf("srcIpAddress")>-1){ - console.log("client ip must ipv6"); if(ipPattern==1){//ip/掩码格式 if(this.optional(element)||ipv6_ip_subnet_regexp.test(value)){ return true; @@ -543,7 +540,7 @@ jQuery.validator.addMethod("ipCheck",function(value, element) { $.validator.messages.ipCheck=$.validator.messages.ipPart; return false; //}else if(!/^(0|2|4|8|16|32|64|128)$/.test(ipMaskArr[1])){ - }else if(!/^(128)$/.test(ipMaskArr[1])){ + }else if(!/^([2-9]|[1-9][0-9]|1[0-2][0-8])$/.test(ipMaskArr[1])){ $.validator.messages.ipCheck=$.validator.messages.ipv6MaskPart; return false; } else{ diff --git a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_en.js b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_en.js index 47a04a579..1d2d73cbe 100644 --- a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_en.js +++ b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_en.js @@ -27,7 +27,7 @@ ipMask:"Please enter a correct IP/mask", ipPart:"Invalid IP part", //ipv6MaskPart:"Mask must be exponent of 2,not greater than 128", - ipv6MaskPart:"Mask must be 128", + ipv6MaskPart:"Mask must between 2 and 128", //ipMaskRange:"IP mask must between 0 and 32", ipMaskRange:"IP mask must between 16 and 32", srcIpNotEqDestIp:"Client IP ", @@ -74,6 +74,6 @@ log_1_hour:"Log For The Last Hour", input:"Please Enter ", protocolPort:"TCP protocol or UDP protocol must be chosen when port is greater than 0", - protocolPort1:"Only when TCP protocol or UDP protocol is chosen can port greater than 0" + protocolPort1:"Only when TCP protocol or UDP protocol is chosen can port greater than 0,ALL protocol has no limit" }); }(jQuery)); diff --git a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_ru.js b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_ru.js index 76fc2ca1b..6e19e84c4 100644 --- a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_ru.js +++ b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_ru.js @@ -27,7 +27,7 @@ ipMask:"Введите правильный IP/маску", ipPart:"Недопустимая часть IP", //ipv6MaskPart:"Mаска-показатель степени 2, небольше 128", - ipv6MaskPart:"掩码必须为128", + ipv6MaskPart:"掩码介于2到128", //ipMaskRange:"Маска IP между 0 и 32", ipMaskRange:"Маска IP должна между 16 и 32", srcIpNotEqDestIp:"IP Источник", @@ -74,6 +74,6 @@ log_1_hour:"Log For The Last Hour", input:"Please Enter ", protocolPort:"TCP protocol or UDP protocol must be chosen when port is greater than 0", - protocolPort1:"Only when TCP protocol or UDP protocol is chosen can port greater than 0" + protocolPort1:"Only when TCP protocol or UDP protocol is chosen can port greater than 0,ALL protocol has no limit" }); }(jQuery)); diff --git a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_zh.js b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_zh.js index 9690dd0ea..8503cfb73 100644 --- a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_zh.js +++ b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_zh.js @@ -27,7 +27,7 @@ ipMask:"请填写正确的IP地址/掩码", ipPart:"IP部分格式错误", //ipv6MaskPart:"掩码为不大于128的2的指数幂", - ipv6MaskPart:"掩码必须为128", + ipv6MaskPart:"掩码介于2到128", //ipMaskRange:"IP掩码介于0到32", ipMaskRange:"IP掩码介于16到32", srcIpNotEqDestIp:"源IP ", @@ -74,6 +74,6 @@ log_1_hour:"1小时日志量", input:"请输入 ", protocolPort:"端口大于0时必须选择TCP协议或者UDP协议", - protocolPort1:"只有tcp,udp协议端口号可以不为0" + protocolPort1:"只有tcp,udp协议端口号可以不为0,全部协议无限制" }); }(jQuery)); diff --git a/src/main/webapp/static/global/scripts/common.js b/src/main/webapp/static/global/scripts/common.js index a097c5fa0..28969d073 100644 --- a/src/main/webapp/static/global/scripts/common.js +++ b/src/main/webapp/static/global/scripts/common.js @@ -1302,16 +1302,16 @@ var viewAreaInfo=function(path,areaEffectiveIds,compileId){ title=$.validator.messages.area;//+" "+$.validator.messages.isp; html+=""; html+=""; - html+="";/* + - "";*/ + html+="" + + ""; html+=""; html+=""; for(i=0;i
"+$.validator.messages.area+""+$.validator.messages.isp+""+$.validator.messages.area+""+$.validator.messages.isp+"