|
|
|
@ -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 (
|
|
|
|
|
<div>
|
|
|
|
|
{chart_rules===undefined?"":<Tabs onChange={(e)=>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?"":<Tabs onChange={(e)=>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(
|
|
|
|
|
<TabPane tab={item.name} key={item.id===null?0:item.id}>
|
|
|
|
@ -343,7 +343,7 @@ class CompetitionContents extends Component{
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
{chartdata===undefined?"":chartdata.teams.length===0||chartdata.teams.length<4?"":<Table className="Competitiontransparent" columns={columns} dataSource={data} showHeader={false} pagination={false}/>}
|
|
|
|
|
{chartdata===undefined?"":chartdata.teams.length===0||chartdata.teams.length<4?"":<Table className="Competitiontransparent" columns={columns} dataSource={datas} showHeader={false} pagination={false}/>}
|
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|