diff --git a/public/react/src/modules/competitions/Competitimain/CompetitionsIndex.js b/public/react/src/modules/competitions/Competitimain/CompetitionsIndex.js index e72926fcd..39eb647de 100644 --- a/public/react/src/modules/competitions/Competitimain/CompetitionsIndex.js +++ b/public/react/src/modules/competitions/Competitimain/CompetitionsIndex.js @@ -53,14 +53,6 @@ class CompetitionsIndex extends Component{ this.getdata(e.key,page) }; - setcompetitonurl=(url)=>{ - - if(url!=null){ - // this.props.history.push(url); - window.location.href=url; - } - } - PaginationCourse=(pageNumber)=>{ let {category}=this.state; this.setState({ @@ -68,6 +60,7 @@ class CompetitionsIndex extends Component{ }) this.getdata(category,pageNumber); } + render() { let {datas,page,count}=this.state; @@ -124,14 +117,14 @@ class CompetitionsIndex extends Component{ size="large" dataSource={datas&&datas} renderItem={(item,key) => ( -
{item.competition_status==="nearly_published"? - this.props.current_user&&this.props.current_user.admin===true?"":this.props.current_user&&this.props.current_user.business===true?"":
即将发布 敬请期待
:""} + item.permission.editable==true?"":
即将发布 敬请期待
:""} {/*
即将发布 敬请期待
*/} {/*{item.description===null||item.description===undefined||item.description===""?