diff --git a/src/main/java/com/ruoyi/project/system/user/controller/UserController.java b/src/main/java/com/ruoyi/project/system/user/controller/UserController.java index ba7bd3ec1..d26bbb170 100644 --- a/src/main/java/com/ruoyi/project/system/user/controller/UserController.java +++ b/src/main/java/com/ruoyi/project/system/user/controller/UserController.java @@ -57,7 +57,7 @@ public class UserController extends BaseController } /** - * 修改 + * 修改用户 */ @Log(title = "系统管理", action = "用户管理-修改用户") @GetMapping("/edit/{userId}") @@ -69,6 +69,16 @@ public class UserController extends BaseController model.addAttribute("user", user); return prefix + "/edit"; } + + /** + * 新增用户 + */ + @Log(title = "系统管理", action = "用户管理-新增用户") + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } @Log(title = "系统管理", action = "用户管理-删除用户") @RequestMapping("/remove/{userId}") diff --git a/src/main/resources/static/ruoyi/system/user/user.js b/src/main/resources/static/ruoyi/system/user/user.js index 05e513f47..c40fdb0b4 100644 --- a/src/main/resources/static/ruoyi/system/user/user.js +++ b/src/main/resources/static/ruoyi/system/user/user.js @@ -114,6 +114,12 @@ function edit(deptId) { layer_show("修改用户", url, '800', '500'); } +/*用户管理-新增*/ +function add() { + var url = prefix + '/add'; + layer_show("新增用户", url, '800', '500'); +} + // 批量强退 function batchRemove() { var rows = getIdSelections("userId"); diff --git a/src/main/resources/templates/system/user/add.html b/src/main/resources/templates/system/user/add.html new file mode 100644 index 000000000..30d74d258 --- /dev/null +++ b/src/main/resources/templates/system/user/add.html @@ -0,0 +1 @@ +test \ No newline at end of file diff --git a/src/main/resources/templates/system/user/user.html b/src/main/resources/templates/system/user/user.html index 58f69bc7a..d5ac697be 100644 --- a/src/main/resources/templates/system/user/user.html +++ b/src/main/resources/templates/system/user/user.html @@ -27,10 +27,13 @@ - +