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
4b453311
Commit
4b453311
authored
Aug 03, 2021
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户管理界面UI
parent
dfaf32e5
Pipeline
#32487
skipped with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
UserManage.js
src/pages/userCenter/userManage/UserManage.js
+14
-7
No files found.
src/pages/userCenter/userManage/UserManage.js
View file @
4b453311
...
...
@@ -419,7 +419,7 @@ const UserManage = () => {
<
span
className
=
{
styles
.
titleText
}
>
{
org
.
text
}
<
/span
>
<
span
className
=
{
styles
.
tip
}
>
<
Tooltip
title
=
""
className
=
{
styles
.
fs
}
>
<
Dropdown
overlay
=
{
orgButtonMenu
}
disabled
=
{
currentOrgOperate
}
>
<
Dropdown
overlay
=
{
orgButtonMenu
}
disabled
=
{
currentOrgOperate
}
>
<
PlusOutlined
style
=
{{
marginLeft
:
20
}}
onClick
=
{
e
=>
e
.
stopPropagation
()}
...
...
@@ -510,6 +510,8 @@ const UserManage = () => {
// 点击树节点,获取当前机构下所有用户
const
onSelect
=
(
props
,
e
)
=>
{
console
.
log
(
e
)
console
.
log
(
props
)
setTableLoading
(
true
);
if
(
e
)
{
setOrgTitle
(
e
.
node
.
title
.
props
.
children
[
0
].
props
.
children
);
...
...
@@ -1174,11 +1176,14 @@ const UserManage = () => {
setEditOrgExtentVisible
(
false
);
};
const
addChange
=
e
=>
{
e
.
domEvent
.
stopPropagation
()
}
/** ***操作按钮**** */
// 机构操作
const
orgButtonMenu
=
(
<
Menu
>
<
Menu
.
Item
key
=
"1"
onClick
=
{
e
=>
addUser
(
e
)
}
icon
=
{
<
UserAddOutlined
/>
}
>
<
Menu
onClick
=
{
e
=>
addChange
(
e
)}
>
<
Menu
.
Item
key
=
"1"
onClick
=
{
addUser
}
icon
=
{
<
UserAddOutlined
/>
}
>
添加用户
<
/Menu.Item
>
<
Menu
.
Item
key
=
"2"
onClick
=
{
addSubOrg
}
icon
=
{
<
UsergroupAddOutlined
/>
}
>
...
...
@@ -1187,7 +1192,7 @@ const UserManage = () => {
<
/Menu
>
);
const
orgButtonMenu1
=
(
<
Menu
>
<
Menu
onClick
=
{
e
=>
addChange
(
e
)}
>
<
Menu
.
Item
key
=
"3"
onClick
=
{
editOrg
}
icon
=
{
<
EditOutlined
/>
}
>
编辑当前机构
<
/Menu.Item
>
...
...
@@ -1224,6 +1229,7 @@ const UserManage = () => {
{
/* 左侧机构树 */
}
<
Spin
spinning
=
{
treeLoading
}
tip
=
"loading..."
>
<
Card
style
=
{{
overflowY
:
'hidden'
}}
className
=
{
classnames
({
[
styles
.
orgContainer
]:
true
,
[
styles
.
orgContainerHide
]:
!
treeVisible
,
...
...
@@ -1234,6 +1240,7 @@ const UserManage = () => {
style
=
{{
fontSize
:
'15px '
,
fontWeight
:
'bold'
,
marginLeft
:
'15px'
}}
>
机构列表
...
...
@@ -1245,11 +1252,11 @@ const UserManage = () => {
color
:
'#1890FF'
,
fontSize
:
'25px'
,
verticalAlign
:
'middle'
,
float
:
'right'
,
marginLeft
:
'67%'
}}
/
>
<
/Tooltip
>
<
hr
style
=
{{
width
:
'
100%'
,
color
:
'#eeecec'
}}
/
>
<
hr
style
=
{{
width
:
'
95%'
,
color
:
'#eeecec'
,
marginLeft
:
'15px'
}}
/
>
{
treeData
.
length
>
0
&&
(
<
Tree
showIcon
=
"true"
...
...
@@ -1262,7 +1269,7 @@ const UserManage = () => {
onSelect
=
{
onSelect
}
height
=
{
treeData
.
length
&&
treeData
.
length
>
30
?
treeData
.
length
*
1
3
?
treeData
.
length
*
1
5
+
30
:
1000
}
treeData
=
{
treeData
.
map
(
t
=>
mapTree
(
t
))}
...
...
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