From 90c58292410360c631b5bdeff2724a32d3998fe8 Mon Sep 17 00:00:00 2001 From: "liang.chao" <1360241448@qq.com> Date: Wed, 2 Apr 2025 10:22:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bonus/imgTool/model/Role.java | 4 + .../system/controller/UserController.java | 6 +- .../resources/mappers/system/UserMapper.xml | 10 +- .../static/js/system/child/userFormTemp.js | 135 ++++++++++++------ .../resources/static/js/system/userMge.js | 97 +++++++------ .../static/pages/user/child/userForm.html | 28 ++-- .../static/pages/user/child/userFormTemp.html | 114 ++++++++------- .../resources/static/pages/user/userMge.html | 10 +- 8 files changed, 241 insertions(+), 163 deletions(-) diff --git a/src/main/java/com/bonus/imgTool/model/Role.java b/src/main/java/com/bonus/imgTool/model/Role.java index c36fb2e..615c364 100644 --- a/src/main/java/com/bonus/imgTool/model/Role.java +++ b/src/main/java/com/bonus/imgTool/model/Role.java @@ -58,5 +58,9 @@ public class Role extends PageEntity { * 角色级别 */ private Integer level; + /** + * 角色级别名称 + */ + private String levelName; } diff --git a/src/main/java/com/bonus/imgTool/system/controller/UserController.java b/src/main/java/com/bonus/imgTool/system/controller/UserController.java index 3a11f06..5c0cdab 100644 --- a/src/main/java/com/bonus/imgTool/system/controller/UserController.java +++ b/src/main/java/com/bonus/imgTool/system/controller/UserController.java @@ -100,14 +100,14 @@ public class UserController { try { SysUser u = userService.getUser(data.getData().getLoginName()); if (u != null) { - return ServerResponse.createErroe("登录名"+data.getData().getLoginName() + "已存在"); + return ServerResponse.createErroe("登录账号"+data.getData().getLoginName() + "已存在"); } - if(StringHelper.isNotEmpty(data.getData().getPhone())){ + /* if(StringHelper.isNotEmpty(data.getData().getPhone())){ SysUser u2 = userService.getPhone(data.getData().getPhone()); if (u2 != null) { return ServerResponse.createErroe("手机号"+data.getData().getPhone() + "已存在"); } - } + }*/ ServerResponse response=userService.saveUser(data.getData()); return response; }catch (Exception e){ diff --git a/src/main/resources/mappers/system/UserMapper.xml b/src/main/resources/mappers/system/UserMapper.xml index d18dfee..e001215 100644 --- a/src/main/resources/mappers/system/UserMapper.xml +++ b/src/main/resources/mappers/system/UserMapper.xml @@ -73,7 +73,7 @@
- +
@@ -29,7 +29,7 @@
- +
@@ -44,12 +44,12 @@
-
+
@@ -59,7 +59,15 @@
-
+
+ +
+ +
+
+ + -
+ -
+
diff --git a/src/main/resources/static/pages/user/child/userFormTemp.html b/src/main/resources/static/pages/user/child/userFormTemp.html index a8e5222..14cd903 100644 --- a/src/main/resources/static/pages/user/child/userFormTemp.html +++ b/src/main/resources/static/pages/user/child/userFormTemp.html @@ -21,15 +21,16 @@
- +
- +
@@ -38,69 +39,80 @@
-
- - +
+ +
-
- -
-
    -
    -
    +
    -
    - - - - - - - - -
    - +
    +
    -
    -
    - -
    - -
    -
    - - -
    - -
    - - -
    -
    - -
    - -
    - - -
    -
    + + + + + + + + + + + + + + + +
    -
    - + - + diff --git a/src/main/resources/static/pages/user/userMge.html b/src/main/resources/static/pages/user/userMge.html index 7866a99..435b9dc 100644 --- a/src/main/resources/static/pages/user/userMge.html +++ b/src/main/resources/static/pages/user/userMge.html @@ -22,11 +22,11 @@
    - +
    -
    +
    - - +