From 14e8a8e92250dcf15ac2696fc84070558eb5b75a Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 7 May 2018 20:34:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E5=BF=85=E5=A1=AB=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/ruoyi/system/user/add.js | 5 ++++- src/main/resources/static/ruoyi/system/user/edit.js | 3 +++ src/main/resources/templates/system/user/add.html | 2 +- src/main/resources/templates/system/user/edit.html | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) 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 @@
- +