diff --git a/src/main/resources/static/ruoyi/system/user/add.js b/src/main/resources/static/ruoyi/system/user/add.js index 69747ea0..79a652ce 100644 --- a/src/main/resources/static/ruoyi/system/user/add.js +++ b/src/main/resources/static/ruoyi/system/user/add.js @@ -2,7 +2,7 @@ $("#form-user-add").validate({ rules:{ loginName:{ required:true, - minlength: 5, + minlength: 2, remote: { url: ctx + "system/user/checkUserNameUnique", type: "post", @@ -21,6 +21,9 @@ $("#form-user-add").validate({ userName:{ required:true, }, + deptName:{ + required:true, + }, password:{ required:true, minlength: 6 diff --git a/src/main/resources/static/ruoyi/system/user/edit.js b/src/main/resources/static/ruoyi/system/user/edit.js index 7bee1770..49077ed8 100644 --- a/src/main/resources/static/ruoyi/system/user/edit.js +++ b/src/main/resources/static/ruoyi/system/user/edit.js @@ -3,6 +3,9 @@ $("#form-user-edit").validate({ userName:{ required:true, }, + deptName:{ + required:true, + }, password:{ required:true, minlength: 6 diff --git a/src/main/resources/templates/system/user/add.html b/src/main/resources/templates/system/user/add.html index 4dfe5629..e97de810 100644 --- a/src/main/resources/templates/system/user/add.html +++ b/src/main/resources/templates/system/user/add.html @@ -18,7 +18,7 @@
- +
diff --git a/src/main/resources/templates/system/user/edit.html b/src/main/resources/templates/system/user/edit.html index 436bb5f2..468f4984 100644 --- a/src/main/resources/templates/system/user/edit.html +++ b/src/main/resources/templates/system/user/edit.html @@ -19,7 +19,7 @@
- +