修正操控配置action切换后无域配置可提交问题.

This commit is contained in:
zhangwenqing
2019-05-23 10:02:57 +08:00
parent 5c00167d76
commit 4a810d918a

View File

@@ -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("<spring:message code='one_more'/>", "<spring:message code='info'/>");
return;
}
if($(".httpReqCfg").find(".boxSolid").length==$(".httpReqCfg").find(".boxSolid.hidden").length){
top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
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);