From 1e6cdafbc0cd863be9b2f6739918b81ec86ba856 Mon Sep 17 00:00:00 2001 From: duandongmei Date: Fri, 31 Aug 2018 13:02:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=A6=E6=88=AA=E9=BB=98=E8=AE=A4=E5=8D=95?= =?UTF-8?q?=E5=9F=9F=E9=BB=98=E8=AE=A4=E5=B1=95=E7=A4=BA=EF=BC=8C=E5=8E=BB?= =?UTF-8?q?=E6=8E=89do=5Flog=E5=92=8Clogtotal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/views/cfg/complexCfgForm.jsp | 1 + .../views/cfg/intercept/interceptForm.jsp | 41 +++++++------------ .../webapp/WEB-INF/views/cfg/ipCfgForm.jsp | 1 + 3 files changed, 17 insertions(+), 26 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/cfg/complexCfgForm.jsp b/src/main/webapp/WEB-INF/views/cfg/complexCfgForm.jsp index 3e0661a01..bd43ae89b 100644 --- a/src/main/webapp/WEB-INF/views/cfg/complexCfgForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/complexCfgForm.jsp @@ -25,6 +25,7 @@ onClick="delContent('${tabName}${status.index}','${tabName}Add');" /> +
diff --git a/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp b/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp index b96e4d1cd..08bcecc16 100644 --- a/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp @@ -19,7 +19,10 @@ setInterceptDefaultInfo(""); $("#serviceId").val($(this).attr("serviceId")); $("#protocolId").val($(this).attr("protocolId")); + openSingleBoxsolid(); + }); + openSingleBoxsolid(); $("#serviceId").val($(".action:checked").attr("serviceId")); $("#protocolId").val($(".action:checked").attr("protocolId")); $(".ratelimitAction").find("input[name='userRegion1']").on("change",function(){ @@ -141,6 +144,14 @@ }); */ $("." + addBtnClassName).removeClass("hidden"); } + //单域默认展开且不可关闭 + var openSingleBoxsolid = function() { + var boxsolidLenth=$(".boxSolid").prev(".form-section:visible").length; + if(boxsolidLenth == 1){ + $(".boxSolid").prev(".form-section:visible").find("span[title=add]").click(); + $(".boxSolid").prev(".form-section:visible").next(".boxSolid").find("span[title=remove]").addClass("hidden"); + } + } @@ -180,8 +191,10 @@ - + + +
@@ -224,30 +237,6 @@
- -
-
-
- - - - - - - - - - - - -
-
-
- <%-- action 为1 监测时 可以选择证书--%> +