|
|
|
@ -117,7 +117,20 @@ class CompetitionContents extends Component{
|
|
|
|
|
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)=>{
|
|
|
|
|
|
|
|
|
|
if(this.props&&this.props.mode!=1){
|
|
|
|
|
|
|
|
|
|
columns.some((item,key)=> {
|
|
|
|
|
if (item.title === "spendtime") {
|
|
|
|
|
columns.splice(key, 1)
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{chartdata===undefined?"":chartdata.teams.length===0||chartdata.teams.length<3?"":chartdata.teams.map((item,key)=>{
|
|
|
|
|
|
|
|
|
|
if(key>2){
|
|
|
|
|
let list={
|
|
|
|
@ -131,11 +144,11 @@ class CompetitionContents extends Component{
|
|
|
|
|
}
|
|
|
|
|
datas.push(list)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})}
|
|
|
|
|
|
|
|
|
|
console.log(this.props&&this.props.mode)
|
|
|
|
|
console.log(columns)
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
//console.log(chartdata&&chartdata.teams)
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
{chart_rules === undefined ? "" :
|
|
|
|
@ -191,8 +204,8 @@ class CompetitionContents extends Component{
|
|
|
|
|
>
|
|
|
|
|
<Meta
|
|
|
|
|
title={<div className={"center"}>
|
|
|
|
|
<div className={"rankfonttop"}>{item.school_name}</div>
|
|
|
|
|
<div className={"rankfontmid"}>{item.spend_time}</div>
|
|
|
|
|
<div className={"rankfonttop"} title={item.school_name}>{item.school_name}</div>
|
|
|
|
|
{this.props&&this.props.mode===1?<div className={"rankfontmid"}>{item.spend_time}</div>:""}
|
|
|
|
|
</div>}
|
|
|
|
|
description={
|
|
|
|
|
<div className={"rankfontbottom"}>{item.score}分</div>
|
|
|
|
@ -227,8 +240,8 @@ class CompetitionContents extends Component{
|
|
|
|
|
>
|
|
|
|
|
<Meta
|
|
|
|
|
title={<div className={"center"}>
|
|
|
|
|
<div className={"rankfonttop"}>{item.school_name}</div>
|
|
|
|
|
<div className={"rankfontmid"}>{item.spend_time}</div>
|
|
|
|
|
<div className={"rankfonttop"} title={item.school_name}>{item.school_name}</div>
|
|
|
|
|
{this.props&&this.props.mode===1?<div className={"rankfontmid"}>{item.spend_time}</div>:""}
|
|
|
|
|
</div>}
|
|
|
|
|
description={
|
|
|
|
|
<div className={"rankfontbottoms"}>{item.score}分</div>
|
|
|
|
@ -263,8 +276,8 @@ class CompetitionContents extends Component{
|
|
|
|
|
>
|
|
|
|
|
<Meta
|
|
|
|
|
title={<div className={"center"}>
|
|
|
|
|
<div className={"rankfonttop"}>{item.school_name}</div>
|
|
|
|
|
<div className={"rankfontmid"}>{item.spend_time}</div>
|
|
|
|
|
<div className={"rankfonttop"} title={item.school_name}>{item.school_name}</div>
|
|
|
|
|
{this.props&&this.props.mode===1?<div className={"rankfontmid"}>{item.spend_time}</div>:""}
|
|
|
|
|
</div>}
|
|
|
|
|
description={
|
|
|
|
|
<div className={"rankfontbottom"}>{item.score}分</div>
|
|
|
|
@ -306,7 +319,7 @@ class CompetitionContents extends Component{
|
|
|
|
|
{/*{item.team_name}*/}
|
|
|
|
|
</Col>
|
|
|
|
|
<Col span={3} order={4}>
|
|
|
|
|
{item.cost_time}
|
|
|
|
|
{this.props&&this.props.mode===1?item.cost_time:""}
|
|
|
|
|
</Col>
|
|
|
|
|
<Col className="textright" span={3} order={5}>
|
|
|
|
|
<span className={"ranknameslast"}>{item.score}</span>
|
|
|
|
|