File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed
backend/src/main/java/io/dataease/service/sys Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 30
30
31
31
import javax .annotation .Resource ;
32
32
import java .util .List ;
33
+ import java .util .Optional ;
33
34
import java .util .stream .Collectors ;
34
35
35
36
@ Service
@@ -117,6 +118,7 @@ public int update(SysUserCreateRequest request) {
117
118
user .setUpdateTime (now );
118
119
deleteUserRoles (user .getUserId ());//先删除用户角色关联
119
120
saveUserRoles (user .getUserId (), request .getRoleIds ());//再插入角色关联
121
+ if (ObjectUtils .isEmpty (user .getDeptId ())) user .setDeptId (0L );
120
122
return sysUserMapper .updateByPrimaryKeySelective (user );
121
123
}
122
124
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export default {
106
106
const { meta , path } = route
107
107
// if set path, the sidebar will highlight the path you set
108
108
if (meta .activeMenu ) {
109
- return meta .activeMenu
109
+ // return meta.activeMenu
110
110
}
111
111
// 如果是首页,首页高亮
112
112
if (path === ' /panel' ) {
Original file line number Diff line number Diff line change 5
5
6
6
<div class =" span-header" >
7
7
<div class =" bi-text" >
8
- {{ $t('pblink.key_pwd') }}
8
+ <span style =" text-align : center ;" >{{ $t('pblink.key_pwd') }}
9
+ </span >
9
10
</div >
10
11
</div >
11
12
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ export default {
288
288
save () {
289
289
this .$refs .createUserForm .validate (valid => {
290
290
if (valid) {
291
- ! this .form .deptId && (this .form .deptId = 0 )
291
+ // !this.form.deptId && (this.form.deptId = 0)
292
292
const method = this .formType === ' add' ? addUser : editUser
293
293
method (this .form ).then (res => {
294
294
this .$success (this .$t (' commons.save_success' ))
You can’t perform that action at this time.
0 commit comments