修复表单修改时doLog选中的不对的bug

This commit is contained in:
wangxin
2018-08-26 12:52:41 +08:00
parent 9678a4a10f
commit f99e15b3c4

View File

@@ -664,9 +664,13 @@ var switchAction=function(action){
$(".doLog").addClass("hidden"); $(".doLog").addClass("hidden");
$("input[name=doLog][value=0]").prop("checked",true); $("input[name=doLog][value=0]").prop("checked",true);
}else{ }else{
//如果表单非修改时,选中默认值
if(!$("input[name='compileId']").val()){
$(".doLog").removeClass("hidden"); $(".doLog").removeClass("hidden");
$("input[name=doLog][value=2]").prop("checked",true); $("input[name=doLog][value=2]").prop("checked",true);
} }
}
} }
//ipType、ipPattern、portPattern选项变化时调用此方法添加默认值 //ipType、ipPattern、portPattern选项变化时调用此方法添加默认值
var switchIpInfo=function(obj){ var switchIpInfo=function(obj){