业务辅助表-业务字典管理平台 分页展示条件搜索,(新增修改部分功能未完善)

This commit is contained in:
zhangshilin
2018-03-01 19:13:57 +08:00
parent d2ff00a622
commit b07485f7f5
15 changed files with 1016 additions and 321 deletions

View File

@@ -0,0 +1,34 @@
$(document).ready(function() {
jQuery.validator.addMethod("codeNumber",function(value,element){
return value>=0&value<=20000000},"请填写正确的数值");
$("#name").focus();
$("#searchForm").validate({
//需验证 item_code item_value
rules: {
'itemCode':{
digits:true,
codeNumber:true
}
},
messages: {
'itemCode':{
digits:'请填写整数值',
codeNumber:'请填写合适的数值0~200000000'
}
},
submitHandler: function(form){
loading('正在处理,请稍等...');
form.submit();
},
errorContainer: "#messageBox",
errorPlacement: function(error, element) {
$("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
error.appendTo(element.parent().parent());
} else {
error.insertAfter(element);
}
}
});
});