|
|
@@ -140,27 +140,29 @@ class UserGroupManagement extends React.Component {
|
|
|
<Content>
|
|
|
<div className='groupname'>
|
|
|
<span>{selectedGroup ? selectedGroup.name : ''}</span>
|
|
|
- {selectedGroup && <Button className='delete-btn' onClick={() => {
|
|
|
- this.setState({
|
|
|
- visibleDeleteBox: true
|
|
|
- })
|
|
|
- }}>
|
|
|
- <Icon type="delete" />删除用户组
|
|
|
- </Button>}
|
|
|
- {visibleDeleteBox && <DeleteBox
|
|
|
- visibleBox={visibleDeleteBox}
|
|
|
- text={`确定要删除用户组【${selectedGroup.name}】吗?`}
|
|
|
- hideBox={() => {
|
|
|
+ <div className='buttons'>
|
|
|
+ {selectedGroup && <Button className='button delete-button' onClick={() => {
|
|
|
this.setState({
|
|
|
- visibleDeleteBox: false
|
|
|
+ visibleDeleteBox: true
|
|
|
})
|
|
|
- }}
|
|
|
- okHandler={() =>{
|
|
|
- dispatch({ type: 'userGroup/remoteDelete', group: selectedGroup });
|
|
|
- }} />}
|
|
|
- {selectedGroup && <Button className='edit-btn' onClick={() => {this.showDetailBox('modify')}}>
|
|
|
- <Icon type="edit" />编辑用户组
|
|
|
- </Button>}
|
|
|
+ }}>
|
|
|
+ <Icon type="delete" />删除用户组
|
|
|
+ </Button>}
|
|
|
+ {visibleDeleteBox && <DeleteBox
|
|
|
+ visibleBox={visibleDeleteBox}
|
|
|
+ text={`确定要删除用户组【${selectedGroup.name}】吗?`}
|
|
|
+ hideBox={() => {
|
|
|
+ this.setState({
|
|
|
+ visibleDeleteBox: false
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ okHandler={() =>{
|
|
|
+ dispatch({ type: 'userGroup/remoteDelete', group: selectedGroup });
|
|
|
+ }} />}
|
|
|
+ {selectedGroup && <Button className='button edit-button' onClick={() => {this.showDetailBox('modify')}}>
|
|
|
+ <Icon type="edit" />编辑用户组
|
|
|
+ </Button>}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<Table
|
|
|
className='member-table'
|