Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
6f1c06dc
Commit
6f1c06dc
authored
Dec 31, 2020
by
陈前坚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 用户管理-复选框优化
parent
86768a90
Pipeline
#21564
skipped with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
UserManage.js
src/pages/userCenter/userManage/UserManage.js
+11
-4
No files found.
src/pages/userCenter/userManage/UserManage.js
View file @
6f1c06dc
...
...
@@ -244,7 +244,7 @@ const UserManage = () => {
{
record
.
state
===
'1'
&&
(
<>
<
Tooltip
title
=
"解冻用户"
>
<
Stop
Outlined
<
User
Outlined
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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment