diff --git a/src/main/webapp/WEB-INF/views/cfg/proxy/control/manipulatPolicyForm.jsp b/src/main/webapp/WEB-INF/views/cfg/proxy/control/manipulatPolicyForm.jsp index 12dd73203..d167c44f1 100644 --- a/src/main/webapp/WEB-INF/views/cfg/proxy/control/manipulatPolicyForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/proxy/control/manipulatPolicyForm.jsp @@ -22,7 +22,6 @@ $("#cfgFrom").validate({ errorPlacement : function(error, element) { - console.log(error); if($(element).parents().hasClass("tagsinput")){ $(element).parents(".col-md-6").next("div").append(error); }else{ @@ -33,12 +32,11 @@ var flag = true; //代表所有业务都隐藏了,提示必须增加一种业务数据 - if(!$(".httpReqCfg").hasClass("hidden")){ - if($(".httpReqCfg").find(".boxSolid").length==$(".httpReqCfg").find(".boxSolid.hidden").length){ - top.$.jBox.tip("", ""); - return; - } + if($(".httpReqCfg").find(".boxSolid").length==$(".httpReqCfg").find(".boxSolid.hidden").length){ + top.$.jBox.tip("", ""); + return; } + //代表所有区域都隐藏了,提示必须增加个区域信息 if($("input[name='isAreaEffective']:checked").val()==1 && $(".container-fluid:visible").size()==0){ if($("#areaIsp").hasClass("hidden")) $("#areaIp").find(".glyphicon-plus").click(); @@ -147,6 +145,13 @@ $("select[name='httpResHdrList[0].district']").change(); } + // 配置域 隐藏后 收起 + $(".httpReqCfg").each(function(){ + if($(this).hasClass("hidden")){ + $(this).find("span").click(); + } + }); + var flag = false; if(selValue == 16 ||selValue == 85 || selValue == 90){ $(".profileSelDiv").attr("source",selValue);