(1)特定服务管理UL修改
(2)特定服务管理加入协议号重复验证,有上级配置则上级配置的所有下级配置ID不能重复,无上级配置一级配置ID不能重复 (3)取消jBox的Cookie打印
This commit is contained in:
@@ -601,6 +601,30 @@ jQuery.validator.addMethod("checkParent",function(value, element) {
|
||||
}
|
||||
return true;
|
||||
});
|
||||
jQuery.validator.addMethod("specServiceCodeCheck",function(value, element) {
|
||||
var ctx=$(element).attr("ctx");
|
||||
var parentId= $("[name='parent.specServiceId']").val();
|
||||
var specServiceCode= $("#specServiceCode").val();
|
||||
var cfgType= $("[name='cfgType']").val();
|
||||
var specServiceId= $("[name='specServiceId']").val();
|
||||
var url=ctx+"/specific/specificServiceCfg/isCodeNotRepeat";
|
||||
var val=true;
|
||||
$.ajax({
|
||||
url:url,
|
||||
type:"post",
|
||||
async:false,
|
||||
data:{
|
||||
parentId:parentId,
|
||||
specServiceCode:specServiceCode,
|
||||
cfgType:cfgType,
|
||||
specServiceId:specServiceId
|
||||
},
|
||||
success:function(data){
|
||||
val=data;
|
||||
}
|
||||
});
|
||||
return val;
|
||||
});
|
||||
//ip v4转数字
|
||||
var ipToNumber=function (ip){
|
||||
var num =0;
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
timeout:"timeout",
|
||||
areaIpPrefix:"Forbiden value: ",
|
||||
domainCheck:"Please enter a valid domain.",
|
||||
checkParent:"Configuration Type must match it's parent."
|
||||
checkParent:"Configuration Type must match it's parent.",
|
||||
specServiceCodeCheck:"Protocol No is repeat."
|
||||
});
|
||||
}(jQuery));
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
timeout:"timeout",
|
||||
areaIpPrefix:"Forbiden value: ",
|
||||
domainCheck:"Please enter a valid domain.",
|
||||
checkParent:"Configuration Type must match it's parent."
|
||||
checkParent:"Configuration Type must match it's parent.",
|
||||
specServiceCodeCheck:"Protocol No is repeat."
|
||||
});
|
||||
}(jQuery));
|
||||
@@ -59,6 +59,7 @@
|
||||
timeout:"超时",
|
||||
areaIpPrefix:"禁止使用的值: ",
|
||||
domainCheck:"请输入有效的域名",
|
||||
checkParent:"配置类型必须与上级配置一致!"
|
||||
checkParent:"配置类型必须与上级配置一致!",
|
||||
specServiceCodeCheck:"协议号重复"
|
||||
});
|
||||
}(jQuery));
|
||||
|
||||
Reference in New Issue
Block a user