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
4 years ago
by
陈前坚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: loading
parent
e2719255
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
UserManage.js
src/pages/userCenter/UserManage.js
+4
-4
No files found.
src/pages/userCenter/UserManage.js
View file @
efc7024d
...
...
@@ -53,7 +53,7 @@ import {
}
from
'@/services/userCenter/userManage/api'
;
const
UserManage
=
()
=>
{
const
[
treeLoading
,
setTreeLoading
]
=
useState
(
tru
e
);
const
[
treeLoading
,
setTreeLoading
]
=
useState
(
fals
e
);
const
[
tableLoading
,
setTableLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
true
);
...
...
@@ -319,7 +319,6 @@ const UserManage = () => {
// 获取用户机构树
useEffect
(()
=>
{
setTreeLoading
(
true
);
updateTrees
();
},
[]);
...
...
@@ -769,6 +768,7 @@ const UserManage = () => {
return
(
<
PageContainer
className
=
{
styles
.
userManageContainer
}
>
<
div
className
=
{
styles
.
contentContainer
}
>
<
Spin
spinning
=
{
treeLoading
}
tip
=
"loading..."
>
<
div
className
=
{
styles
.
orgContainer
}
>
<
span
style
=
{{
padding
:
'8px'
,
fontSize
:
'16px'
}}
>
机构列表
...
...
@@ -794,8 +794,8 @@ const UserManage = () => {
/
>
<
/Tooltip
>
<
/span
>
{
treeData
.
length
>
0
&&
(
<
Spin
spinning
=
{
treeLoading
}
tip
=
"loading..."
>
<
Tree
// showLine="true"
showIcon
=
"true"
...
...
@@ -805,9 +805,9 @@ const UserManage = () => {
onSelect
=
{
onSelect
}
treeData
=
{
treeData
.
map
(
t
=>
mapTree
(
t
))}
/
>
<
/Spin
>
)}
<
/div
>
<
/Spin
>
<
div
className
=
{
styles
.
userContainer
}
>
<
Table
title
=
{
getTableTitle
}
...
...
This diff is collapsed.
Click to expand it.
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