|
|
@ -2,7 +2,7 @@ $("#form-user-add").validate({
|
|
|
|
rules:{
|
|
|
|
rules:{
|
|
|
|
loginName:{
|
|
|
|
loginName:{
|
|
|
|
required:true,
|
|
|
|
required:true,
|
|
|
|
minlength: 5,
|
|
|
|
minlength: 2,
|
|
|
|
remote: {
|
|
|
|
remote: {
|
|
|
|
url: ctx + "system/user/checkUserNameUnique",
|
|
|
|
url: ctx + "system/user/checkUserNameUnique",
|
|
|
|
type: "post",
|
|
|
|
type: "post",
|
|
|
@ -21,6 +21,9 @@ $("#form-user-add").validate({
|
|
|
|
userName:{
|
|
|
|
userName:{
|
|
|
|
required:true,
|
|
|
|
required:true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
deptName:{
|
|
|
|
|
|
|
|
required:true,
|
|
|
|
|
|
|
|
},
|
|
|
|
password:{
|
|
|
|
password:{
|
|
|
|
required:true,
|
|
|
|
required:true,
|
|
|
|
minlength: 6
|
|
|
|
minlength: 6
|
|
|
|