|
@@ -68,10 +68,8 @@ const [data, setData] = useState({ data: [] })
|
68
|
68
|
|
69
|
69
|
|
70
|
70
|
function stop(ids, status) {
|
71
|
|
- const title = status === 1 ? '停用后角色对应账号也会被自动停用,请谨慎操作' : '是否启用该角色';
|
72
|
|
-
|
73
|
71
|
Modal.confirm({
|
74
|
|
- title: title,
|
|
72
|
+ title: "删除后角色对应账号权限也会被自动停用,请谨慎操作",
|
75
|
73
|
okText: '确认',
|
76
|
74
|
cancelText: '取消',
|
77
|
75
|
onOk () {
|
|
@@ -120,7 +118,7 @@ const columns = [
|
120
|
118
|
|
121
|
119
|
render: (text, record) => <>
|
122
|
120
|
<AuthButton name="admin.role.publish" noRight={null}>
|
123
|
|
- <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={() => stop(record.roleId, record.status)}>{ record.status === 1 ? '停用' : '启用' }
|
|
121
|
+ <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={() => stop(record.roleId, record.status)}>{ record.status === 1 ? '删除' : '' }
|
124
|
122
|
<Icon type="stop" className={styles.shoppingCart} style={{ fontSize: 14 }}/>
|
125
|
123
|
</span>
|
126
|
124
|
</AuthButton>
|