From 3371f95f70d66b30efba7820622935c55600e5c4 Mon Sep 17 00:00:00 2001 From: 段冬梅 Date: Fri, 14 Dec 2018 20:49:58 +0800 Subject: app ssl、http、header界面关键字十六进制校验,关键字去掉系统多关键字分隔符 修改关键字配置跳转http日志菜单,日志菜单选中 字符串域配置修改,修复表达式一直选中第一个值问题 地址池和拦截controller中增加messageType MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maintenance/IpMultiplexPoolCfgController.java | 2 +- .../configuration/proxy/InterceptController.java | 2 +- .../WEB-INF/views/cfg/app/appHeaderCfgForm.jsp | 1 + .../WEB-INF/views/cfg/app/appHttpCfgForm.jsp | 1 + .../webapp/WEB-INF/views/cfg/app/appSslCfgForm.jsp | 12 ++++- .../webapp/WEB-INF/views/cfg/app/appSslCfgList.jsp | 2 +- .../webapp/WEB-INF/views/cfg/complexCfgForm.jsp | 5 +- src/main/webapp/static/global/scripts/pzLog.js | 58 ++++++++++++---------- src/main/webapp/static/pages/scripts/home.js | 6 ++- src/main/webapp/static/pages/scripts/pageLogs.js | 6 ++- 10 files changed, 59 insertions(+), 36 deletions(-) diff --git a/src/main/java/com/nis/web/controller/configuration/maintenance/IpMultiplexPoolCfgController.java b/src/main/java/com/nis/web/controller/configuration/maintenance/IpMultiplexPoolCfgController.java index 57be837..892047f 100644 --- a/src/main/java/com/nis/web/controller/configuration/maintenance/IpMultiplexPoolCfgController.java +++ b/src/main/java/com/nis/web/controller/configuration/maintenance/IpMultiplexPoolCfgController.java @@ -100,7 +100,7 @@ public class IpMultiplexPoolCfgController extends BaseController { if(!StringUtil.isEmpty(ids)){ ipMultiplexPoolCfgService.delete(isAudit,isValid,ids,functionId); } - addMessage(redirectAttributes,"delete_success"); + addMessage(redirectAttributes,"success","delete_success"); }catch(Exception e){ logger.error(e); addMessage(redirectAttributes,"error", "delete_failed"); diff --git a/src/main/java/com/nis/web/controller/configuration/proxy/InterceptController.java b/src/main/java/com/nis/web/controller/configuration/proxy/InterceptController.java index 87b2725..687596d 100644 --- a/src/main/java/com/nis/web/controller/configuration/proxy/InterceptController.java +++ b/src/main/java/com/nis/web/controller/configuration/proxy/InterceptController.java @@ -192,7 +192,7 @@ public class InterceptController extends CommonController{ public String updateInterceptIpValid(Integer isValid,String ids,Integer functionId, RedirectAttributes redirectAttributes) { try { interceptCfgService.updatInterceptValid(isValid,ids,functionId); - addMessage(redirectAttributes,"error","delete_success"); + addMessage(redirectAttributes,"success","delete_success"); } catch (Exception e) { logger.error("intercept ip delete failed",e); addMessage(redirectAttributes,"error","delete_failed"); diff --git a/src/main/webapp/WEB-INF/views/cfg/app/appHeaderCfgForm.jsp b/src/main/webapp/WEB-INF/views/cfg/app/appHeaderCfgForm.jsp index 4e5bab5..250714c 100644 --- a/src/main/webapp/WEB-INF/views/cfg/app/appHeaderCfgForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/app/appHeaderCfgForm.jsp @@ -32,6 +32,7 @@ $(function(){ var isHexbin=$(this).val(); if(isHexbin == 1){ var keywords=$("input[name$='"+$(this).attr("name").replace("isHexbin","cfgKeywords")+"']").val(); + keywords=keywords.replace("***and***",""); if(!(/^([0-9|a-f|A-F]*)$/.test(keywords))){ $(this).parents(".form-body").find( "div[for='" diff --git a/src/main/webapp/WEB-INF/views/cfg/app/appHttpCfgForm.jsp b/src/main/webapp/WEB-INF/views/cfg/app/appHttpCfgForm.jsp index 397bca3..dc132d0 100644 --- a/src/main/webapp/WEB-INF/views/cfg/app/appHttpCfgForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/app/appHttpCfgForm.jsp @@ -32,6 +32,7 @@ $(function(){ var isHexbin=$(this).val(); if(isHexbin == 1){ var keywords=$("input[name$='"+$(this).attr("name").replace("isHexbin","cfgKeywords")+"']").val(); + keywords=keywords.replace("***and***",""); if(!(/^([0-9|a-f|A-F]*)$/.test(keywords))){ $(this).parents(".form-body").find( "div[for='" diff --git a/src/main/webapp/WEB-INF/views/cfg/app/appSslCfgForm.jsp b/src/main/webapp/WEB-INF/views/cfg/app/appSslCfgForm.jsp index 0585bcb..abd8f65 100644 --- a/src/main/webapp/WEB-INF/views/cfg/app/appSslCfgForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/app/appSslCfgForm.jsp @@ -32,13 +32,14 @@ $(function(){ var isHexbin=$(this).val(); if(isHexbin == 1){ var keywords=$("input[name$='"+$(this).attr("name").replace("isHexbin","cfgKeywords")+"']").val(); + keywords=keywords.replace("***and***",""); if(!(/^([0-9|a-f|A-F]*)$/.test(keywords))){ $(this).parents(".form-body").find( "div[for='" + $(this).attr("name").replace("isHexbin","cfgKeywords") + "']").html(""); flag = false; - } + } } }); if(flag){ @@ -53,6 +54,13 @@ $(function(){ errorContainer: "#messageBox", }); }); +function changeDistrict(obj){ + if("others"==obj.val()){ + obj.parent().siblings(".otherValue").prop("type","text"); + }else{ + obj.parent().siblings(".otherValue").prop("type","hidden"); + } +} @@ -441,4 +449,4 @@ $(function(){ - \ No newline at end of file + diff --git a/src/main/webapp/WEB-INF/views/cfg/app/appSslCfgList.jsp b/src/main/webapp/WEB-INF/views/cfg/app/appSslCfgList.jsp index c059bb7..62ad6a1 100644 --- a/src/main/webapp/WEB-INF/views/cfg/app/appSslCfgList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/app/appSslCfgList.jsp @@ -54,7 +54,7 @@