Commit e24f991f authored by 陈前坚's avatar 陈前坚

perf: 批量操作

parent bb5f817d
...@@ -153,7 +153,7 @@ const AppMenu = () => { ...@@ -153,7 +153,7 @@ const AppMenu = () => {
</> </>
), ),
key: menu.menuID, key: menu.menuID,
icon: menu.leaf ? <FileOutlined /> : <FolderOpenOutlined />, // icon: menu.leaf ? <FileOutlined /> : <FolderOpenOutlined />,
// 判断它是否存在子集,若果存在就进行再次进行遍历操作,知道不存在子集便对其他的元素进行操作 // 判断它是否存在子集,若果存在就进行再次进行遍历操作,知道不存在子集便对其他的元素进行操作
children: haveChildren ? menu.children.map(i => mapTree(i)) : [], children: haveChildren ? menu.children.map(i => mapTree(i)) : [],
}; };
......
This diff is collapsed.
...@@ -30,7 +30,15 @@ ...@@ -30,7 +30,15 @@
display: block; display: block;
} }
} }
.ant-pagination-prev,.ant-pagination-next{
line-height: 8px !important;
}
.ant-input-search-button{
line-height: 1;
}
.ant-dropdown-menu-item > .anticon:first-child {
vertical-align: 0.15em !important;
}
} }
.redText{ .redText{
color: red; color: red;
...@@ -78,9 +86,13 @@ ...@@ -78,9 +86,13 @@
height: calc(100vh - 74px); height: calc(100vh - 74px);
float: left; float: left;
padding: 10px; padding: 10px;
width: 200px; padding-right: 22px;
width: 240px;
background: white; background: white;
overflow: auto; overflow: auto;
margin-right:10px;
transform: translateX(0px);
transition: transform 0.5s;
.ant-tree{ .ant-tree{
padding-top: 6px; padding-top: 6px;
.ant-tree-switcher{ .ant-tree-switcher{
...@@ -89,16 +101,25 @@ ...@@ -89,16 +101,25 @@
.ant-tree-switcher-line-icon{ .ant-tree-switcher-line-icon{
margin-left: 5px; margin-left: 5px;
} }
} }
}
.switcher{
color: #1890FF;
font-size: 18px;
position: absolute;
left: 220px;
top: 46%;
} }
} }
.hide{
display: none; .orgContainerHide{
transform: translateX(-230px);
} }
.userContainer{ .userContainer{
height: calc(100vh - 168px) !important; height: calc(100vh - 74px) !important;
flex: 1; flex: 1;
min-width: 840px; min-width: 760px;
background: white; background: white;
.ant-table-pagination{ .ant-table-pagination{
padding-right: 12px; padding-right: 12px;
...@@ -106,13 +127,12 @@ ...@@ -106,13 +127,12 @@
margin: 1px 0; margin: 1px 0;
padding:8px; padding:8px;
padding-right: 20px; padding-right: 20px;
.ant-pagination-prev,.ant-pagination-next{
line-height: 8px !important;
}
} }
.ant-btn-primary{ .ant-btn{
margin-left: 20px; margin: 0px 10px;
background: #50aefc; .ant-btn-primary{
background: #50aefc;
}
} }
.ant-input-search-button{ .ant-input-search-button{
margin-left: 0px !important; margin-left: 0px !important;
...@@ -133,6 +153,10 @@ ...@@ -133,6 +153,10 @@
border-right: white; border-right: white;
overflow: auto !important; overflow: auto !important;
} }
.ant-pagination{
z-index: 999;
border-top: 1px solid #f0eded;
}
} }
} }
} }
......
...@@ -100,6 +100,15 @@ export const addToOrg = (userID, orgID, newOrgID) => ...@@ -100,6 +100,15 @@ export const addToOrg = (userID, orgID, newOrgID) =>
oldOUID: orgID, oldOUID: orgID,
newOUID: newOrgID, newOUID: newOrgID,
}); });
// 批量更改机构
export const addToOrgs = (userIDs, orgIDs, newOrgID) =>
get(`${PUBLISH_SERVICE}/UserCenter/ModifyUserRole`, {
_version: 9999,
_dc: Date.now(),
userIds: userIDs,
oldGroupIds: orgIDs,
newGroupId: newOrgID,
});
export const updateUserPassword = ( export const updateUserPassword = (
userID, userID,
...@@ -141,6 +150,14 @@ export const deleteUser = userID => ...@@ -141,6 +150,14 @@ export const deleteUser = userID =>
_dc: Date.now(), _dc: Date.now(),
userID, userID,
}); });
// 批量删除用户
export const multiDeleteUsers = (userIDs, orgIDs) =>
get(`${PUBLISH_SERVICE}/UserCenter/DeleteUsers`, {
_version: 9999,
_dc: Date.now(),
userIds: userIDs,
groupId: orgIDs,
});
export const setUserRelation = (userID, roleList = [], stationList) => export const setUserRelation = (userID, roleList = [], stationList) =>
post( post(
......
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