fix:用户页面(todo:角色,部门,数据分配)

This commit is contained in:
zhangzhiqiang
2022-12-02 15:58:06 +08:00
parent 06cd3b453c
commit 05457c0904
2 changed files with 2 additions and 2 deletions

View File

@@ -220,7 +220,7 @@ public class UserServiceImpl implements UserService {
delCaches(user.getUser_id(), user.getUsername());
}
String collectSql = ids.stream().map(a -> String.valueOf(a)).collect(Collectors.joining("','"));
WQLObject.getWQLObject("sys_user").delete("user_id in ('"+collectSql+"'");
WQLObject.getWQLObject("sys_user").delete("user_id in ('"+collectSql+"')");
//删除用户部门,角色关系表
userRelateService.deleteDeptRelate(ids);
userRelateService.deleteRoleRelate(ids);

View File

@@ -229,7 +229,7 @@ export default {
name: 'User',
components: { Treeselect, crudOperation, rrOperation, udOperation, pagination },
cruds() {
return CRUD({ title: '用户', url: 'api/users', crudMethod: { ...crudUser }})
return CRUD({ title: '用户', idField: 'user_id', url: 'api/users', crudMethod: { ...crudUser }})
},
mixins: [presenter(), header(), form(defaultForm), crud()],
// 数据字典