(1)修复特定服务新增时无法选择上级节点的bug
(2)特定服务加入验证,当前节点的配置类型应当与上级配置一致
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user