From 1e1cc79daa8e6d52d4055fe997fa2eb22ad53b5c 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 14:12:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=AB=9E=E8=B5=9B=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Competitioncommon/CompetitionCommon.js | 4 ++-- .../Competitioncommon/CompetitionContents.js | 4 ++-- .../Competitioncommon/CompetitionContentsChart.js | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.js b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.js index 7b622949e..2d1aae16f 100644 --- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.js +++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.js @@ -268,7 +268,7 @@ class CompetitionCommon extends Component{ {data.competition_status==="nearly_published"? - this.props.current_user&&this.props.current_user.admin===true?"":this.props.current_user&&this.props.current_user.business===true?"":
即将发布 敬请期待
:""} + data&&data.permission.editable===true?"":
即将发布 敬请期待
:""} @@ -334,7 +334,7 @@ class CompetitionCommon extends Component{ :data.enroll_end===true?: data.competition_status==="progressing"?:"":"":""}
diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionContentsChart.js b/public/react/src/modules/competitions/Competitioncommon/CompetitionContentsChart.js index 5e2dec3bc..ac09b2e6c 100644 --- a/public/react/src/modules/competitions/Competitioncommon/CompetitionContentsChart.js +++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionContentsChart.js @@ -115,8 +115,8 @@ class CompetitionContents extends Component{ }, ]; - const data = []; - let {chart_rules,chartdata}=this.props; + const datas = []; + let {chart_rules,chartdata,data}=this.props; let {personal}=this.state; chartdata===undefined?"":chartdata.teams.length===0||chartdata.teams.length<3?"":chartdata.teams.map((item,key)=>{ @@ -130,7 +130,7 @@ class CompetitionContents extends Component{ score:item.score, user_login:item.user_login } - data.push(list) + datas.push(list) } }) @@ -139,7 +139,7 @@ class CompetitionContents extends Component{ //console.log(chartdata&&chartdata.teams) return (
- {chart_rules===undefined?"":this.props.Competitioncallback(e)} activeKey={this.props.tabkey} tabBarExtraContent={this.props.current_user&&this.props.current_user.admin===true||this.props.current_user&&this.props.current_user.business===true?this.props.Competitionedittype===false?this.props.has_url===false?operations:"":"":""}> + {chart_rules===undefined?"":this.props.Competitioncallback(e)} activeKey={this.props.tabkey} tabBarExtraContent={data&&data.permission.editable===true?this.props.Competitionedittype===false?this.props.has_url===false?operations:"":"":""}> {chart_rules.stages.map((item,key)=>{ return( @@ -343,7 +343,7 @@ class CompetitionContents extends Component{ ` } - {chartdata===undefined?"":chartdata.teams.length===0||chartdata.teams.length<4?"":} + {chartdata===undefined?"":chartdata.teams.length===0||chartdata.teams.length<4?"":
}