Commit 8a485575 authored by 陈前坚's avatar 陈前坚

perf: style

parent 7245db0b
...@@ -9,8 +9,7 @@ import { ...@@ -9,8 +9,7 @@ import {
Input, Input,
notification, notification,
Tooltip, Tooltip,
Row, Card,
Col,
Tabs, Tabs,
Button, Button,
Spin, Spin,
...@@ -1110,21 +1109,21 @@ const UserManage = () => { ...@@ -1110,21 +1109,21 @@ const UserManage = () => {
<div className={styles.contentContainer}> <div className={styles.contentContainer}>
{/* 左侧机构树 */} {/* 左侧机构树 */}
<Spin spinning={treeLoading} tip="loading..."> <Spin spinning={treeLoading} tip="loading...">
<div <Card
className={classnames({ className={classnames({
[styles.orgContainer]: true, [styles.orgContainer]: true,
[styles.orgContainerHide]: !treeVisible, [styles.orgContainerHide]: !treeVisible,
})} })}
> >
<div> <div>
<span style={{ margin: '10px' }}>机构列表</span> <span style={{ margin: '0 106px 0 10px' }}>机构列表</span>
<Tooltip title="添加顶级机构"> <Tooltip title="添加顶级机构">
<UsergroupAddOutlined <UsergroupAddOutlined
onClick={() => addOrg()} onClick={() => addOrg()}
style={{ style={{
float: 'right',
color: '#1890FF', color: '#1890FF',
fontSize: '18px', fontSize: '18px',
verticalAlign: '0.04em',
}} }}
/> />
</Tooltip> </Tooltip>
...@@ -1132,8 +1131,8 @@ const UserManage = () => { ...@@ -1132,8 +1131,8 @@ const UserManage = () => {
<Tree <Tree
showIcon="true" showIcon="true"
showLine={{ showLeafIcon: false }} showLine={{ showLeafIcon: false }}
// blockNode="true" blockNode
autoExpandParent="true" autoExpandParent
expandedKeys={[currentSelectOrg]} expandedKeys={[currentSelectOrg]}
selectedKeys={[currentSelectOrg]} selectedKeys={[currentSelectOrg]}
onSelect={onSelect} onSelect={onSelect}
...@@ -1153,7 +1152,7 @@ const UserManage = () => { ...@@ -1153,7 +1152,7 @@ const UserManage = () => {
</Tooltip> </Tooltip>
)} )}
</div> </div>
</div> </Card>
</Spin> </Spin>
{/* 右侧用户表 */} {/* 右侧用户表 */}
......
...@@ -44,6 +44,9 @@ ...@@ -44,6 +44,9 @@
background: #aed8fa !important; background: #aed8fa !important;
} }
} }
.ant-modal-close-x {
line-height: 40px;
}
} }
.redText{ .redText{
color: red; color: red;
...@@ -87,18 +90,19 @@ ...@@ -87,18 +90,19 @@
} }
.contentContainer{ .contentContainer{
display: flex; display: flex;
width: 100%;
position: relative;
.orgContainer{ .orgContainer{
height: calc(100vh - 74px); height: calc(100vh - 74px);
float: left;
padding: 10px;
padding-right: 22px;
width: 240px; width: 240px;
background: white; left: 0;
overflow: auto; top: 0;
margin-right:10px; overflow-x: hidden;
margin-left:0px; margin-right: 10px;
transform: translateX(1px); position: relative;
transition: transform 0.5s; transition-property:width,left;
transition-duration: 0.5s;
white-space: nowrap;
.ant-tree{ .ant-tree{
padding-top: 6px; padding-top: 6px;
.ant-tree-switcher{ .ant-tree-switcher{
...@@ -110,27 +114,31 @@ ...@@ -110,27 +114,31 @@
} }
} }
.switcher{ .switcher{
color: #1890FF; display: block;
font-size: 18px;
position: absolute; position: absolute;
left: 220px; font-size: 18px;
top: 46%; color: #1890FF!important;
top: 45%;
right: 2px;
transform: translate(0%,-50%);
z-index: 1;
} }
} }
.orgContainerHide{ .orgContainerHide{
transform: translateX(-230px); // transform: translateX(-230px);
} left: 0px;
.userContainerHide{ top: 0;
transform: translateX(-230px); width: 20px;
margin-right: -230px;
} }
.userContainer{ .userContainer{
height: calc(100vh - 74px) !important; height: calc(100vh - 74px) !important;
flex: 1; z-index: 999;
min-width: 800px; min-width: 800px;
background: white; background: white;
transition: transform 0.5s; width: 100%;
position: relative;
transition: width 0.5s;
.ant-table-pagination{ .ant-table-pagination{
padding-right: 12px; padding-right: 12px;
background: white; background: white;
...@@ -150,7 +158,6 @@ ...@@ -150,7 +158,6 @@
.ant-table-thead tr th{ .ant-table-thead tr th{
font-weight: 600; font-weight: 600;
color:rgba(0,0,0,0.85); color:rgba(0,0,0,0.85);
// background-color: #c9e1f5;
} }
.ant-table-cell{ .ant-table-cell{
text-align:center; text-align:center;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment