(1)修复特定服务新增时无法选择上级节点的bug

(2)特定服务加入验证,当前节点的配置类型应当与上级配置一致
This commit is contained in:
wangxin
2018-07-25 15:19:24 +08:00
parent 4e0be5b70b
commit 76b7122c21
13 changed files with 68 additions and 13 deletions

View File

@@ -594,6 +594,13 @@ jQuery.validator.addMethod("areaIp",function(value, element) {
}
}
});
jQuery.validator.addMethod("checkParent",function(value, element) {
var parentType=$(element).attr("parent-type");
if(parentType&&parentType!=0&&parentType!=value){
return false;
}
return true;
});
//ip v4转数字
var ipToNumber=function (ip){
var num =0;