竞赛调整

issues25489
杨树林 5 years ago
parent a61cd42151
commit ff8bc7c2de

@ -29,6 +29,11 @@ class RegisListviewdata extends React.Component {
})
}
getotiku = (url) => {
window.open(url, '_blank');
}
render() {
const {item} = this.props;
return (
@ -53,12 +58,31 @@ class RegisListviewdata extends React.Component {
marginTop: "29px",
marginLeft: "37px"
}}>
<p className="maxnamewidth160" style={{
{
this.props.admin?
this.props.admin===true?
<a className="maxnamewidth160" title={item.name} style={{
color: "#05101A",
fontSize: "16px",
width: "160px",
textAlign: "center"
}}
onClick={()=>this.getotiku(`/competitions/${this.props.match.params.identifier}/competition_teams/${item.id}`)}
>{item.name}</a>
: <p className="maxnamewidth160" style={{
color: "#05101A",
fontSize: "16px",
width: "160px",
textAlign: "center"
}}>{item.name}</p>
: <p className="maxnamewidth160" style={{
color: "#05101A",
fontSize: "16px",
width: "160px",
textAlign: "center"
}}>{item.name}</p>
}
</div>
<div style={{
marginLeft: "37px",

@ -1050,7 +1050,7 @@ class Registration extends React.Component {
{
competition_teams && competition_teams.map((item, index) => {
return (
<RegisListviewdata {...this.props} {...this.state} key={index} item={item}></RegisListviewdata>
<RegisListviewdata {...this.props} {...this.state} key={index} item={item} admin={admin}></RegisListviewdata>
)
})
}

@ -203,17 +203,17 @@ class Competitionteams extends Component{
render: (text, record) => <div className={record.creator==="合计:"?"teamsLayoucolor-orange":""}>{text}</div>,
},
{
title: '学习人数',
title: '学生数量',
dataIndex: 'students_count',
key: 'students_count',
render: (text, record) => <div className={record.creator==="合计:"?"teamsLayoucolor-orange":""}>{text}</div>,
},
{
title: '被fork发布的学习人数',
title: '发布的实训作业数量',
dataIndex: 'shixun_homework_count',
key: 'shixun_homework_count',
render: (text, record) =>
<Tooltip placement="bottom" title={"fork该实训产生的新实训学习总人数"}>
<Tooltip placement="bottom" title={"发布的实训作业数量"}>
<div className={record.creator==="合计:"?"teamsLayoucolor-orange":""}>{text}</div>
</Tooltip>,
},

Loading…
Cancel
Save