Commit 3564bf1d by zhangleyuan

Merge branch 'feature/zhangleyuan/20210719/personnel-organization' into dev

parents 5cc6ee34 55c8a1af
...@@ -276,7 +276,7 @@ function DepartMentTabCon(props) { ...@@ -276,7 +276,7 @@ function DepartMentTabCon(props) {
onChangeSelectDep={(record)=>{setSelectDep(record);}} onChangeSelectDep={(record)=>{setSelectDep(record);}}
/> />
<div className="table-con"> <div className="table-con">
{props.currentTab === "departMentTab" && ( {(props.currentTab === "departMentTab" && selectDep.id !== '100') && (
<div className="operate-area"> <div className="operate-area">
<Button <Button
type="primary" type="primary"
...@@ -302,7 +302,7 @@ function DepartMentTabCon(props) { ...@@ -302,7 +302,7 @@ function DepartMentTabCon(props) {
props.currentTab === "customGroupTab") && ( props.currentTab === "customGroupTab") && (
<div className="operate-area"> <div className="operate-area">
{/* 岗位组和自定义分组只有岗位下和分组才展示添加学员*/} {/* 岗位组和自定义分组只有岗位下和分组才展示添加学员*/}
{selectDep.depLevel > 0 && {(selectDep.depLevel > 0) &&
<Button <Button
type="primary" type="primary"
className="add-user-btn" className="add-user-btn"
......
...@@ -243,9 +243,11 @@ function LeftStructureTree(props) { ...@@ -243,9 +243,11 @@ function LeftStructureTree(props) {
</span> </span>
</Menu.Item> </Menu.Item>
} }
{ (record.departmentCount === 0 || !record.departmentCount) &&
<Menu.Item key="del"> <Menu.Item key="del">
<span onClick={()=>{props.treeType==='postGrouptab'?delPostGroup(record):delCustomGroup(record)}}>删除</span> <span onClick={()=>{props.treeType==='postGrouptab'?delPostGroup(record):delCustomGroup(record)}}>删除</span>
</Menu.Item> </Menu.Item>
}
</Menu> </Menu>
); );
......
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