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
7b1ae5fd
Commit
7b1ae5fd
authored
Nov 04, 2020
by
张烨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: 优化用户管理样式
parent
ca29b390
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
27 deletions
+49
-27
UserManage.js
src/pages/userCenter/UserManage.js
+10
-22
UserManage.less
src/pages/userCenter/UserManage.less
+39
-5
No files found.
src/pages/userCenter/UserManage.js
View file @
7b1ae5fd
...
...
@@ -44,8 +44,9 @@ const UserManage = () => {
const
haveChildren
=
Array
.
isArray
(
org
.
children
)
&&
org
.
children
.
length
>
0
;
return
{
title
:
(
<>
<
span
>
{
org
.
text
}
<
/span
>
<
div
className
=
{
styles
.
iconWraper1
}
>
{
org
.
text
}
<
Tooltip
title
=
"添加用户"
>
<
FileAddTwoTone
onClick
=
{
e
=>
addUser
(
e
,
org
.
text
,
org
.
id
)}
/
>
<
/Tooltip
>
...
...
@@ -59,6 +60,7 @@ const UserManage = () => {
<
DeleteTwoTone
onClick
=
{
e
=>
deleteOrg
(
e
,
org
.
text
,
org
.
id
)}
/
>
<
/Tooltip
>
<
/div
>
<
/
>
),
key
:
org
.
id
,
// icon: <CaretDownOutlined />,
...
...
@@ -96,6 +98,7 @@ const UserManage = () => {
{
title
:
'操作'
,
key
:
'action'
,
align
:
'center'
,
render
:
(
text
,
record
)
=>
(
<
Space
size
=
"middle"
>
<
a
>
关联角色
{
record
.
name
}
<
/a
>
...
...
@@ -340,18 +343,10 @@ const UserManage = () => {
};
return
(
<
PageContainer
>
<
div
style
=
{{
width
:
'20%'
,
height
:
'calc(100vh - 194px)'
,
background
:
'white'
,
float
:
'left'
,
padding
:
'10px'
,
minWidth
:
'330px'
,
}}
>
<
span
style
=
{{
padding
:
'8px'
}}
>
<
PageContainer
className
=
{
styles
.
userManageContainer
}
>
<
div
className
=
{
styles
.
contentContainer
}
>
<
div
className
=
{
styles
.
orgContainer
}
>
<
span
style
=
{{
padding
:
'8px'
,
fontSize
:
'16px'
}}
>
机构列表
<
Tooltip
title
=
"添加下级机构"
>
<
FolderAddTwoTone
...
...
@@ -369,15 +364,7 @@ const UserManage = () => {
treeData
=
{
treeData
}
/
>
<
/div
>
<
div
style
=
{{
width
:
'79%'
,
height
:
'calc(100vh - 194px)'
,
background
:
'white'
,
float
:
'right'
,
padding
:
'20px'
,
}}
>
<
div
className
=
{
styles
.
userContainer
}
>
<
Table
columns
=
{
columns
}
dataSource
=
{
tableData
}
...
...
@@ -507,6 +494,7 @@ const UserManage = () => {
>
<
p
>
即将关联删除
主站点
用户关系,是否确认删除?
<
/p
>
<
/Modal
>
<
/div
>
<
/PageContainer
>
);
};
...
...
src/pages/userCenter/UserManage.less
View file @
7b1ae5fd
.iconWraper1{
.userManageContainer{
.ant-tree-treenode{
width: 100%;
.ant-tree-node-content-wrapper.ant-tree-node-content-wrapper-normal{
display: inline-block;
width: 100%;
}
.iconWraper1{
float: right;
span{
display: none;
}
}
.iconWraper1:hover{
span{
}
}
.ant-tree-treenode:hover{
.iconWraper1>span{
margin-left: 12px;
font-size: 16px;
display: inline-block;
}
// display: block;
}
.contentContainer{
min-height: calc(100vh - 194px);
display: flex;
.orgContainer{
width: 20%;
height: calc(100vh - 194px);
float: left;
padding: 10px;
min-width: 330px;
background: white;
.ant-tree{
padding-top: 6px;
}
}
.userContainer{
margin-left: 12px;
flex: 1;
height: calc(100vh - 194px);
background: white;
.ant-table-pagination-right{
padding-right: 12px;
}
}
}
}
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