refactor(系统设置): 优化特殊字符报错的缺陷
This commit is contained in:
parent
4180d40a12
commit
aeef403e70
|
@ -99,8 +99,8 @@ public class GroupController {
|
|||
|
||||
@PostMapping("/all")
|
||||
@RequiresPermissions(PermissionConstants.SYSTEM_USER_READ_EDIT)
|
||||
public List<Map<String, Object>> getAllUserGroup(@RequestBody String userId) {
|
||||
return groupService.getAllUserGroup(userId);
|
||||
public List<Map<String, Object>> getAllUserGroup(@RequestBody User user) {
|
||||
return groupService.getAllUserGroup(user.getId());
|
||||
}
|
||||
|
||||
@PostMapping("/list")
|
||||
|
|
|
@ -61,8 +61,8 @@ public class UserController {
|
|||
}
|
||||
|
||||
@PostMapping("/special/user/group")
|
||||
public UserGroupPermissionDTO getUserGroup(@RequestBody String userId) {
|
||||
return userService.getUserGroup(userId);
|
||||
public UserGroupPermissionDTO getUserGroup(@RequestBody User user) {
|
||||
return userService.getUserGroup(user.getId());
|
||||
}
|
||||
|
||||
@GetMapping("/special/delete")
|
||||
|
|
|
@ -74,5 +74,5 @@ export function addUser2Group(param) {
|
|||
}
|
||||
|
||||
export function getUserAllGroups(userId) {
|
||||
return post(`/user/group/all`, userId);
|
||||
return post("/user/group/all", { id: userId });
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ export function specialListUsers(data, page, size) {
|
|||
}
|
||||
|
||||
export function specialGetUserGroup(userId) {
|
||||
return post(`/user/special/user/group`, userId);
|
||||
return post("/user/special/user/group", { id: userId });
|
||||
}
|
||||
|
||||
export function specialModifyUserDisable(user) {
|
||||
|
|
|
@ -351,7 +351,7 @@ export default {
|
|||
this.tableData = listObject;
|
||||
for (let i = 0; i < this.tableData.length; i++) {
|
||||
if (this.tableData[i].id) {
|
||||
specialGetUserGroup(encodeURIComponent(this.tableData[i].id))
|
||||
specialGetUserGroup(this.tableData[i].id)
|
||||
.then(result => {
|
||||
let data = result.data;
|
||||
let groups = data.groups;
|
||||
|
|
Loading…
Reference in New Issue