新增用户、待完善

This commit is contained in:
RuoYi 2018-03-06 16:36:46 +08:00
parent c566ee66ba
commit 8e0ab65dfd
4 changed files with 22 additions and 2 deletions

View File

@ -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}")

View File

@ -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");

View File

@ -0,0 +1 @@
test

View File

@ -27,10 +27,13 @@
</div>
</div>
</div>
</div>
</div>
<div class="wrapper wrapper-content ui-layout-center">
<div class="btn-group hidden-xs" id="tableToolbar" role="group">
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:add()'">
<i class="glyphicon glyphicon-plus"></i>
</button>
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:batchRemove()'">
<i class="glyphicon glyphicon-trash"></i>
</button>