diff --git a/src/App.js b/src/App.js index 5bda3716..af5532ad 100644 --- a/src/App.js +++ b/src/App.js @@ -118,7 +118,7 @@ class App extends Component { this.unlisten = this.props.history.listen((location) => { let newPathname = location.pathname.split('/')[1]; if (this.state.pathName !== newPathname) { - this.setState({ pathType: '' }); + // this.setState({ pathType: '' }); newPathname && this.getPathnameType(newPathname); } }); @@ -313,6 +313,16 @@ class App extends Component { } /> + + {/* 组织 */} + { + return () + } + }> + + {/*新建项目等*/} { - return () - } - }> - {/* 个人主页 */} - + {projectDetail && projectDetail.branches && projectDetail.branches.total_count}个分支 diff --git a/src/forge/Main/CoderRootIndex.js b/src/forge/Main/CoderRootIndex.js index d754d525..0fb30c4e 100644 --- a/src/forge/Main/CoderRootIndex.js +++ b/src/forge/Main/CoderRootIndex.js @@ -137,7 +137,7 @@ class CoderRootIndex extends Component{ () => () } > - () } diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js index a2ca67b9..99b3803b 100644 --- a/src/forge/Main/Detail.js +++ b/src/forge/Main/Detail.js @@ -544,7 +544,7 @@ class Detail extends Component { { forked_count > 0 ? platform ? - + {forked_count} : @@ -739,7 +739,7 @@ class Detail extends Component { (props) => () } > - () } diff --git a/src/forge/Main/DetailTop.js b/src/forge/Main/DetailTop.js index 8806f12d..ecd5ab9f 100644 --- a/src/forge/Main/DetailTop.js +++ b/src/forge/Main/DetailTop.js @@ -16,7 +16,7 @@ class DetailTop extends Component { {(coderCount && coderCount.commits_count) || 0}个提交 - 0 ? "active" : ""}> + 0 ? "active" : ""}> {(coderCount && coderCount.branches_count) || 0}个分支 diff --git a/src/forge/Main/sub/DetailBanner.jsx b/src/forge/Main/sub/DetailBanner.jsx index 7f8fddc0..abce4003 100644 --- a/src/forge/Main/sub/DetailBanner.jsx +++ b/src/forge/Main/sub/DetailBanner.jsx @@ -16,7 +16,6 @@ function DetailBanner({ history,list , owner , projectsId , isManager , url , pa setMenuName(list); } },[list]); - console.log('open_devops:'+open_devops) return(
{ diff --git a/src/forge/Order/OrderItem.js b/src/forge/Order/OrderItem.js index 4d1b0cb9..08178864 100644 --- a/src/forge/Order/OrderItem.js +++ b/src/forge/Order/OrderItem.js @@ -89,7 +89,7 @@ class OrderItem extends Component {
  • {item.done_ratio || "--"}
  • - {item.journals_count} + {item.journals_count} { user_admin_or_member ?
    diff --git a/src/forge/Settings/Index.js b/src/forge/Settings/Index.js index 89b4f88b..92b60aaf 100644 --- a/src/forge/Settings/Index.js +++ b/src/forge/Settings/Index.js @@ -63,11 +63,11 @@ class Index extends Component {
  • -1 ? "active" : "" + pathname.indexOf("settings/collaborators") > -1 ? "active" : "" } >

    - + 协作者管理 @@ -98,10 +98,10 @@ class Index extends Component {

  • -1 ? "active" : ""} + className={pathname.indexOf("settings/lables") > -1 ? "active" : ""} >

    - + 项目标签 @@ -146,14 +146,14 @@ class Index extends Component { > {/* 协作者 */} ( )} > {/* 修改仓库信息 */} ( )} diff --git a/src/forge/Team/Index.jsx b/src/forge/Team/Index.jsx index 7076d5a9..1a3bfde9 100644 --- a/src/forge/Team/Index.jsx +++ b/src/forge/Team/Index.jsx @@ -36,11 +36,11 @@ export default withRouter(CNotificationHOC()(SnackbarHOC()(TPMIndexHOC( return (

    - {/* 组织团队-设置 */} + {/* 新建组织 */} { - return + return }} > {/* 组织团队-新建 */} @@ -50,6 +50,13 @@ export default withRouter(CNotificationHOC()(SnackbarHOC()(TPMIndexHOC( return }} > + {/* 组织团队-设置 */} + { + return + }} + > {/* 组织团队-子级(包含组织团队列表) */} }} > - {/* 新建组织 */} - { - return - }} - > + {/* 组织详情(包含组织设置) */} 组织团队管理 - + ) } diff --git a/src/forge/Team/TeamGroup.jsx b/src/forge/Team/TeamGroup.jsx index 38725e7d..1920caed 100644 --- a/src/forge/Team/TeamGroup.jsx +++ b/src/forge/Team/TeamGroup.jsx @@ -3,11 +3,11 @@ import { Banner } from '../Component/layout'; import GroupItems from './TeamGroupItems'; const limit = 14; -function TeamGroup({organizeDetail,history}){ +function TeamGroup({organizeDetail,history,current_user}){ return(
    组织团队 - +
    ) } diff --git a/src/forge/Team/TeamGroupItems.jsx b/src/forge/Team/TeamGroupItems.jsx index 7b718878..5a955818 100644 --- a/src/forge/Team/TeamGroupItems.jsx +++ b/src/forge/Team/TeamGroupItems.jsx @@ -17,7 +17,7 @@ const ImgContent = styled.img`{ border-radius:50%; margin:5px 10px; }` -function TeamGroupItems({organizeDetail,limit, count , history}){ +function TeamGroupItems({organizeDetail,limit, count , history ,current_user}){ const [ page , setPage ] = useState(1); const [ isSpin , setIsSpin ] = useState(true); const [ total , setTotal ] = useState(0); @@ -48,6 +48,7 @@ function TeamGroupItems({organizeDetail,limit, count , history}){ axios.delete(url).then(result =>{ if(result && result.data){ getData(); + history.push(`/${current_user && current_user.login}`); } }).catch(error=>{}) } diff --git a/src/forge/users/Infos.js b/src/forge/users/Infos.js index 44bf2f39..0e56aaef 100644 --- a/src/forge/users/Infos.js +++ b/src/forge/users/Infos.js @@ -282,7 +282,7 @@ class Infos extends Component { 概览 数据统计 - 项目 + 项目 { current_user && user && user.login === current_user.login ? @@ -338,7 +338,7 @@ class Infos extends Component { }} > { return ; }}