From f51b6a7f772b07ac71b7bc1b91bab785ff3d0877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Tue, 29 Oct 2019 15:23:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=A8=A1=E5=9D=97=EF=BC=8C?= =?UTF-8?q?=E7=AB=9E=E8=B5=9B=E6=9D=83=E9=99=90=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Competitimain/CompetitionsIndex.js | 19 +- .../modules/courses/statistics/Statistics.js | 226 ++++++++++++------ 2 files changed, 160 insertions(+), 85 deletions(-) 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===""?