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 监测时 可以选择证书--%> +