Browse Source

权限-功能范围用户显示优化

master
liujiangyong 1 year ago
parent
commit
e839d59e1f
  1. 4
      web/client/src/sections/organization/containers/authority.js

4
web/client/src/sections/organization/containers/authority.js

@ -36,6 +36,8 @@ const Authority = (props) => {
setUserSelected(depUser[0].username) setUserSelected(depUser[0].username)
dispatch(getUserResource(depUser[0].id)) dispatch(getUserResource(depUser[0].id))
setUseName(depUser[0].name) setUseName(depUser[0].name)
} else {
setUseName('')
} }
}, [depUser]) }, [depUser])
@ -114,7 +116,7 @@ const Authority = (props) => {
</div> </div>
<Divider /> <Divider />
<div className='list-title'> <div className='list-title'>
{`${useName ? useName : '管理员'}】 功能范围`} {`${useName || ''}】 功能范围`}
</div> </div>
{depUser.length ? {depUser.length ?
<Card bordered={false} bodyStyle={{ padding: 8, paddingTop: 24 }}> <Card bordered={false} bodyStyle={{ padding: 8, paddingTop: 24 }}>

Loading…
Cancel
Save