Commit 6f1c06dc authored by 陈前坚's avatar 陈前坚

perf: 用户管理-复选框优化

parent 86768a90
Pipeline #21564 skipped with stages
......@@ -244,7 +244,7 @@ const UserManage = () => {
{record.state === '1' && (
<>
<Tooltip title="解冻用户">
<StopOutlined
<UserOutlined
onClick={() => freezeUser(record)}
style={{ fontSize: '16px', color: '#535353' }}
/>
......@@ -345,6 +345,7 @@ const UserManage = () => {
getOneOUUserListNew(props[0] || currentSelectOrg)
.then(res => {
setCurrentOrgOperate(false); // 重置禁用当前机构操作为false
setMultiOperate(true); // 重新禁止用户批量操作
setSelectedRowKeys([]); // 重置选中用户数
if (res.code === 0) {
setTableLoading(false);
......@@ -486,7 +487,9 @@ const UserManage = () => {
getUserByKey(searchWord)
.then(res => {
if (res.success) {
setSelectedRowKeys([]); // 重置选中用户数
setCurrentOrgOperate(true); // 禁止当前机构操作
setMultiOperate(true); // 禁用批量操作
setOrgTitle('全部机构搜索结果'); // 设置表头
setCurrentSelectOrg([]); // 清空机构时选中机构
setTableData(res.root);
......@@ -954,9 +957,13 @@ const UserManage = () => {
>
<p>
将删除用户
<span className={styles.redText}>
{voca.stripTags(currentUser.loginName)}
</span>
{multiDelete ? (
''
) : (
<span className={styles.redText}>
{voca.stripTags(currentUser.loginName)}
</span>
)}
, 是否确认删除?
</p>
</Modal>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment