新建团队

This commit is contained in:
caishi 2021-02-04 18:31:27 +08:00
parent 59836f69d0
commit 03cd10f599
3 changed files with 3 additions and 11 deletions

View File

@ -106,7 +106,7 @@ function List(props){
</div> </div>
} }
</div> </div>
<Right OIdentifier={OIdentifier} history={props.history}/> <Right admin={organizeDetail && organizeDetail.is_admin} OIdentifier={OIdentifier} history={props.history}/>
</div> </div>
) )
} }

View File

@ -36,7 +36,7 @@ const Img = styled.img`{
height:45px; height:45px;
margin-right:12px; margin-right:12px;
}` }`
function RightBox({ OIdentifier , history }) { function RightBox({ OIdentifier , history , admin }) {
const [ memberData, setMemberData ] = useState(undefined); const [ memberData, setMemberData ] = useState(undefined);
const [ groupData, setGroupData ] = useState(undefined); const [ groupData, setGroupData ] = useState(undefined);
@ -87,7 +87,7 @@ function RightBox({ OIdentifier , history }) {
<Box <Box
name="组织团队" name="组织团队"
count={groupData && groupData.total_count} count={groupData && groupData.total_count}
bottom={<Button type={'primary'} onClick={()=>history.push(`/organize/${OIdentifier}/group/new`)}>新建团队</Button>} bottom={admin && <Button type={'primary'} onClick={()=>history.push(`/organize/${OIdentifier}/group/new`)}>新建团队</Button>}
url={`/organize/${OIdentifier}/group`} url={`/organize/${OIdentifier}/group`}
> >
{ {

View File

@ -12,14 +12,6 @@ const SpanFoot = styled.span`{
margin-right:5px; margin-right:5px;
color:#333 color:#333
}` }`
const ALink = styled.a`{
border:1px solid #F73030;
color:#F73030!important;
height:30px;
line-height:30px;
padding:0px 15px;
border-radius:5px;
}`
const ImgContent = styled.img`{ const ImgContent = styled.img`{
height:44px; height:44px;
width:44px; width:44px;