配置界面的Cfg Id检索条件 增加范围和in的检索方式
This commit is contained in:
@@ -24,6 +24,16 @@
|
||||
});
|
||||
}(jQuery));
|
||||
|
||||
//cfgId 新增配置ID查询条件验证 1,2,3 1-3
|
||||
jQuery.validator.addMethod("compileIdCheck",function(value,element){
|
||||
var flagTypeSame=true;
|
||||
if(this.optional(element) || /^(\d+,)*\d+$/.test(value) || /^(\d+-)?\d+$/.test(value)){
|
||||
flagTypeSame=true;
|
||||
}else{
|
||||
flagTypeSame=false;
|
||||
}
|
||||
return flagTypeSame ;
|
||||
},$.validator.messages.compileIdCheck);
|
||||
jQuery.validator.addMethod("hexCheck", function(value, element) {
|
||||
return this.optional(element) || /^([0-9|a-f|A-F]*)$/.test(value);
|
||||
}, $.validator.messages.hexCheck);
|
||||
|
||||
@@ -92,6 +92,7 @@
|
||||
protect_warn:"Policy with relax precondition may consume too much resources.Use with cautions!",
|
||||
log_no_data:"This hour no data",
|
||||
expireTip:"Start time and end time interval is at least 1 minute",
|
||||
compareTip:"Start time should not be less than the current time plus 2 minutes."
|
||||
compareTip:"Start time should not be less than the current time plus 2 minutes.",
|
||||
compileIdCheck:"Please enter the correct query format"
|
||||
});
|
||||
}(jQuery));
|
||||
|
||||
@@ -92,6 +92,7 @@
|
||||
protect_warn:"Policy with relax precondition may consume too much resources.Use with cautions!",
|
||||
log_no_data:"Нет данных за этот час",
|
||||
expireTip:"Start time and end time interval is at least 1 minute",
|
||||
compareTip:"Start time should not be less than the current time plus 2 minutes."
|
||||
compareTip:"Start time should not be less than the current time plus 2 minutes.",
|
||||
compileIdCheck:"Please enter the correct query format"
|
||||
});
|
||||
}(jQuery));
|
||||
|
||||
@@ -92,6 +92,7 @@
|
||||
protect_warn:"该策略执行条件过于宽泛,会消耗较多的计算资源。慎用!",
|
||||
log_no_data:"本小时无数据",
|
||||
expireTip:"开始时间结束时间间隔至少为1分钟",
|
||||
compareTip:"开始时间不能小于当前时间加上2分钟 "
|
||||
compareTip:"开始时间不能小于当前时间加上2分钟 ",
|
||||
compileIdCheck:"请输入正确的查询格式"
|
||||
});
|
||||
}(jQuery));
|
||||
|
||||
Reference in New Issue
Block a user