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
efc7024d
Commit
efc7024d
authored
Nov 13, 2020
by
陈前坚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: loading
parent
e2719255
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
+32
-32
UserManage.js
src/pages/userCenter/UserManage.js
+32
-32
No files found.
src/pages/userCenter/UserManage.js
View file @
efc7024d
...
@@ -53,7 +53,7 @@ import {
...
@@ -53,7 +53,7 @@ import {
}
from
'@/services/userCenter/userManage/api'
;
}
from
'@/services/userCenter/userManage/api'
;
const
UserManage
=
()
=>
{
const
UserManage
=
()
=>
{
const
[
treeLoading
,
setTreeLoading
]
=
useState
(
tru
e
);
const
[
treeLoading
,
setTreeLoading
]
=
useState
(
fals
e
);
const
[
tableLoading
,
setTableLoading
]
=
useState
(
false
);
const
[
tableLoading
,
setTableLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
true
);
const
[
loading
,
setLoading
]
=
useState
(
true
);
...
@@ -319,7 +319,6 @@ const UserManage = () => {
...
@@ -319,7 +319,6 @@ const UserManage = () => {
// 获取用户机构树
// 获取用户机构树
useEffect
(()
=>
{
useEffect
(()
=>
{
setTreeLoading
(
true
);
updateTrees
();
updateTrees
();
},
[]);
},
[]);
...
@@ -769,33 +768,34 @@ const UserManage = () => {
...
@@ -769,33 +768,34 @@ const UserManage = () => {
return
(
return
(
<
PageContainer
className
=
{
styles
.
userManageContainer
}
>
<
PageContainer
className
=
{
styles
.
userManageContainer
}
>
<
div
className
=
{
styles
.
contentContainer
}
>
<
div
className
=
{
styles
.
contentContainer
}
>
<
div
className
=
{
styles
.
orgContainer
}
>
<
Spin
spinning
=
{
treeLoading
}
tip
=
"loading..."
>
<
span
style
=
{{
padding
:
'8px'
,
fontSize
:
'16px'
}}
>
<
div
className
=
{
styles
.
orgContainer
}
>
机构列表
<
span
style
=
{{
padding
:
'8px'
,
fontSize
:
'16px'
}}
>
<
Tooltip
title
=
"查找用户"
>
机构列表
<
SearchOutlined
<
Tooltip
title
=
"查找用户"
>
style
=
{{
<
SearchOutlined
fontSize
:
'18px'
,
style
=
{{
float
:
'right'
,
fontSize
:
'18px'
,
margin
:
'4px 4px 0px 12px'
,
float
:
'right'
,
color
:
'#1890FF'
,
margin
:
'4px 4px 0px 12px'
,
}}
color
:
'#1890FF'
,
onClick
=
{
searchUser
}
}}
/
>
onClick
=
{
searchUser
}
<
/Tooltip
>
/
>
<
Tooltip
title
=
"添加下级机构"
>
<
/Tooltip
>
<
FolderAddTwoTone
<
Tooltip
title
=
"添加下级机构"
>
style
=
{{
<
FolderAddTwoTone
fontSize
:
'18px'
,
style
=
{{
float
:
'right'
,
fontSize
:
'18px'
,
marginTop
:
'4px'
,
float
:
'right'
,
}}
marginTop
:
'4px'
,
onClick
=
{
e
=>
addSubOrg
(
e
,
'根目录'
,
'-1'
)}
}}
/
>
onClick
=
{
e
=>
addSubOrg
(
e
,
'根目录'
,
'-1'
)}
<
/Tooltip
>
/
>
<
/span
>
<
/Tooltip
>
{
treeData
.
length
>
0
&&
(
<
/span
>
<
Spin
spinning
=
{
treeLoading
}
tip
=
"loading..."
>
{
treeData
.
length
>
0
&&
(
<
Tree
<
Tree
// showLine="true"
// showLine="true"
showIcon
=
"true"
showIcon
=
"true"
...
@@ -805,9 +805,9 @@ const UserManage = () => {
...
@@ -805,9 +805,9 @@ const UserManage = () => {
onSelect
=
{
onSelect
}
onSelect
=
{
onSelect
}
treeData
=
{
treeData
.
map
(
t
=>
mapTree
(
t
))}
treeData
=
{
treeData
.
map
(
t
=>
mapTree
(
t
))}
/
>
/
>
<
/Spin
>
)}
)}
<
/div
>
<
/
div
>
<
/
Spin
>
<
div
className
=
{
styles
.
userContainer
}
>
<
div
className
=
{
styles
.
userContainer
}
>
<
Table
<
Table
title
=
{
getTableTitle
}
title
=
{
getTableTitle
}
...
...
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