IP导入功能的验证提交第一版,目前没有对函号,分类性质标签进行验证,ip格式验证的正则表达式填写的是*,后续版本会更新功能。

This commit is contained in:
wangxin
2018-07-02 16:04:41 +08:00
parent 736537bc95
commit 85da517ed0
11 changed files with 319 additions and 13 deletions

View File

@@ -165,6 +165,7 @@ jQuery.validator.addMethod("notStartZero",function(value, element) {
}
return true;
}, "请填写正确的数值");
//域名验证正则
jQuery.validator.addMethod("domainCheck",function(value, element) {
var regexp=/^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/;
if(this.optional(element)||regexp.test(value)){

View File

@@ -768,7 +768,7 @@ function validateDataIsLicit(){
var toImport=function (cfgRegionCode,cfgType){
$("#cfgRegionCode").val(cfgRegionCode);
$("#cfgType").val(cfgType);
if(cfgType){//针对要下发到不同配置的处理
if(cfgType){//针对要下发到不同cfgType的处理
$('.radio-inline').children('span').each(function(){
if($(this).hasClass(cfgType)){
$(this).find("input").removeAttr("disabled");