From 3d5f65c3842f53fdf7a6c895dbc417a185a39535 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 17 Mar 2019 22:27:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E4=B8=8B=E4=B8=8D=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=EF=BC=8C=E9=98=B2=E6=AD=A2=E9=80=A0=E6=88=90?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E6=B5=AA=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/templates/system/config/add.html | 1 + ruoyi-admin/src/main/resources/templates/system/config/edit.html | 1 + ruoyi-admin/src/main/resources/templates/system/dept/add.html | 1 + ruoyi-admin/src/main/resources/templates/system/dept/edit.html | 1 + .../src/main/resources/templates/system/dict/type/add.html | 1 + .../src/main/resources/templates/system/dict/type/edit.html | 1 + ruoyi-admin/src/main/resources/templates/system/menu/add.html | 1 + ruoyi-admin/src/main/resources/templates/system/menu/edit.html | 1 + ruoyi-admin/src/main/resources/templates/system/post/add.html | 1 + ruoyi-admin/src/main/resources/templates/system/post/edit.html | 1 + ruoyi-admin/src/main/resources/templates/system/role/add.html | 1 + ruoyi-admin/src/main/resources/templates/system/role/edit.html | 1 + ruoyi-admin/src/main/resources/templates/system/user/add.html | 1 + ruoyi-admin/src/main/resources/templates/system/user/edit.html | 1 + .../src/main/resources/templates/system/user/profile/edit.html | 1 + 15 files changed, 15 insertions(+) diff --git a/ruoyi-admin/src/main/resources/templates/system/config/add.html b/ruoyi-admin/src/main/resources/templates/system/config/add.html index 646fc721..06f2fb06 100644 --- a/ruoyi-admin/src/main/resources/templates/system/config/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/config/add.html @@ -45,6 +45,7 @@ var prefix = ctx + "system/config"; $("#form-config-add").validate({ + onkeyup: false, rules: { configKey: { remote: { diff --git a/ruoyi-admin/src/main/resources/templates/system/config/edit.html b/ruoyi-admin/src/main/resources/templates/system/config/edit.html index 0e894ae7..dde415ff 100644 --- a/ruoyi-admin/src/main/resources/templates/system/config/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/config/edit.html @@ -46,6 +46,7 @@ var prefix = ctx + "system/config"; $("#form-config-edit").validate({ + onkeyup: false, rules: { configKey: { remote: { diff --git a/ruoyi-admin/src/main/resources/templates/system/dept/add.html b/ruoyi-admin/src/main/resources/templates/system/dept/add.html index 228ee05a..49cf919e 100644 --- a/ruoyi-admin/src/main/resources/templates/system/dept/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/dept/add.html @@ -61,6 +61,7 @@ var prefix = ctx + "system/dept"; $("#form-dept-add").validate({ + onkeyup: false, rules:{ deptName:{ remote: { diff --git a/ruoyi-admin/src/main/resources/templates/system/dept/edit.html b/ruoyi-admin/src/main/resources/templates/system/dept/edit.html index f674f278..27d6b241 100644 --- a/ruoyi-admin/src/main/resources/templates/system/dept/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/dept/edit.html @@ -62,6 +62,7 @@ var prefix = ctx + "system/dept"; $("#form-dept-edit").validate({ + onkeyup: false, rules:{ deptName:{ remote: { diff --git a/ruoyi-admin/src/main/resources/templates/system/dict/type/add.html b/ruoyi-admin/src/main/resources/templates/system/dict/type/add.html index eb935db5..622a2d5d 100644 --- a/ruoyi-admin/src/main/resources/templates/system/dict/type/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/dict/type/add.html @@ -39,6 +39,7 @@ var prefix = ctx + "system/dict"; $("#form-dict-add").validate({ + onkeyup: false, rules:{ dictType:{ minlength: 5, diff --git a/ruoyi-admin/src/main/resources/templates/system/dict/type/edit.html b/ruoyi-admin/src/main/resources/templates/system/dict/type/edit.html index c311791b..9af59cca 100644 --- a/ruoyi-admin/src/main/resources/templates/system/dict/type/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/dict/type/edit.html @@ -40,6 +40,7 @@ var prefix = ctx + "system/dict"; $("#form-dict-edit").validate({ + onkeyup: false, rules:{ dictType:{ minlength: 5, diff --git a/ruoyi-admin/src/main/resources/templates/system/menu/add.html b/ruoyi-admin/src/main/resources/templates/system/menu/add.html index 63e40e8d..7b00bf47 100644 --- a/ruoyi-admin/src/main/resources/templates/system/menu/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/menu/add.html @@ -74,6 +74,7 @@ var prefix = ctx + "system/menu"; $("#form-menu-add").validate({ + onkeyup: false, rules:{ menuType:{ required:true, diff --git a/ruoyi-admin/src/main/resources/templates/system/menu/edit.html b/ruoyi-admin/src/main/resources/templates/system/menu/edit.html index eaf6d90b..809f6b1d 100644 --- a/ruoyi-admin/src/main/resources/templates/system/menu/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/menu/edit.html @@ -80,6 +80,7 @@ }); $("#form-menu-edit").validate({ + onkeyup: false, rules:{ menuType:{ required:true, diff --git a/ruoyi-admin/src/main/resources/templates/system/post/add.html b/ruoyi-admin/src/main/resources/templates/system/post/add.html index e61f8e3e..28f0122d 100644 --- a/ruoyi-admin/src/main/resources/templates/system/post/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/post/add.html @@ -45,6 +45,7 @@ var prefix = ctx + "system/post"; $("#form-post-add").validate({ + onkeyup: false, rules:{ postName:{ remote: { diff --git a/ruoyi-admin/src/main/resources/templates/system/post/edit.html b/ruoyi-admin/src/main/resources/templates/system/post/edit.html index 8409024d..391b2bd6 100644 --- a/ruoyi-admin/src/main/resources/templates/system/post/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/post/edit.html @@ -46,6 +46,7 @@ var prefix = ctx + "system/post"; $("#form-post-edit").validate({ + onkeyup: false, rules:{ postName:{ remote: { diff --git a/ruoyi-admin/src/main/resources/templates/system/role/add.html b/ruoyi-admin/src/main/resources/templates/system/role/add.html index 82ccf87f..dd8dd2a9 100644 --- a/ruoyi-admin/src/main/resources/templates/system/role/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/role/add.html @@ -66,6 +66,7 @@ $("#form-role-add").validate({ rules:{ + onkeyup: false, roleName:{ remote: { url: ctx + "system/role/checkRoleNameUnique", diff --git a/ruoyi-admin/src/main/resources/templates/system/role/edit.html b/ruoyi-admin/src/main/resources/templates/system/role/edit.html index 529c024e..cd07869a 100644 --- a/ruoyi-admin/src/main/resources/templates/system/role/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/role/edit.html @@ -66,6 +66,7 @@ }); $("#form-role-edit").validate({ + onkeyup: false, rules:{ roleName:{ remote: { diff --git a/ruoyi-admin/src/main/resources/templates/system/user/add.html b/ruoyi-admin/src/main/resources/templates/system/user/add.html index cc8155c6..71475d6f 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/add.html @@ -141,6 +141,7 @@ var prefix = ctx + "system/user"; $("#form-user-add").validate({ + onkeyup: false, rules:{ loginName:{ minlength: 2, diff --git a/ruoyi-admin/src/main/resources/templates/system/user/edit.html b/ruoyi-admin/src/main/resources/templates/system/user/edit.html index bbe1445f..4c6adef0 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/edit.html @@ -132,6 +132,7 @@ var prefix = ctx + "system/user"; $("#form-user-edit").validate({ + onkeyup: false, rules:{ email:{ email:true, diff --git a/ruoyi-admin/src/main/resources/templates/system/user/profile/edit.html b/ruoyi-admin/src/main/resources/templates/system/user/profile/edit.html index 36a9974a..e9676c1a 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/profile/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/profile/edit.html @@ -55,6 +55,7 @@