fix:用户页面(todo:角色,部门,数据分配)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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()],
|
||||
// 数据字典
|
||||
|
||||
Reference in New Issue
Block a user