|
|
|
@ -84,21 +84,21 @@ class CompetitionContents extends Component{
|
|
|
|
|
dataIndex: 'userimg',
|
|
|
|
|
key: 'userimg',
|
|
|
|
|
render: (text, record) =>(
|
|
|
|
|
<span href={`/users/${record.user_login}`} className="color-dark">
|
|
|
|
|
<a href={`/users/${record.user_login}`} target={"_blank"} className="color-dark">
|
|
|
|
|
<img className={"Competitionuserimg"} src={getImageUrl(`images/${record.userimg===null?`avatars/User/0?1442652658`:record.userimg}`)}/>
|
|
|
|
|
</span>),
|
|
|
|
|
</a>),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'username',
|
|
|
|
|
dataIndex: 'username',
|
|
|
|
|
key: 'username',
|
|
|
|
|
render: text => <span title={text}>{text}</span>,
|
|
|
|
|
render: text => <span title={text} title={text}>{text}</span>,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'school',
|
|
|
|
|
dataIndex: 'school',
|
|
|
|
|
key: 'school',
|
|
|
|
|
render: text => <span title={text}>{text}</span>,
|
|
|
|
|
render: text => <span title={text} title={text}>{text}</span>,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'spendtime',
|
|
|
|
@ -200,7 +200,7 @@ class CompetitionContents extends Component{
|
|
|
|
|
<li className="pr Competitioncenter">
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan-two.png")}/>
|
|
|
|
|
<div className={"mt10"}>
|
|
|
|
|
<a href={`/users/${item.user_login}`} className="color-dark">
|
|
|
|
|
<a href={`/users/${item.user_login}`} target={"_blank"} className="color-dark">
|
|
|
|
|
<img className={"rankingimg"} src={getImageUrl(`images/${item.user_image===null?`avatars/User/0?1442652658`:item.user_image}`)} />
|
|
|
|
|
<p className="task-hide rankName mt5 jinshaifont">{personal===undefined||personal===null?item.record_user_name:personal===true?item.record_user_name:item.team_name}</p>
|
|
|
|
|
</a>
|
|
|
|
@ -236,7 +236,7 @@ class CompetitionContents extends Component{
|
|
|
|
|
<li className="pr Competitioncenter">
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan.png")}/>
|
|
|
|
|
<div className={"mt10"}>
|
|
|
|
|
<a href={`/users/${item.user_login}`} className="color-dark">
|
|
|
|
|
<a href={`/users/${item.user_login}`} target={"_blank"} className="color-dark">
|
|
|
|
|
<img className={"rankingimg"} src={getImageUrl(`images/${item.user_image===null?`avatars/User/0?1442652658`:item.user_image}`)} />
|
|
|
|
|
<p className="task-hide rankName mt5 jinshaifont">{personal===undefined||personal===null?item.record_user_name:personal===true?item.record_user_name:item.team_name}</p>
|
|
|
|
|
</a>
|
|
|
|
@ -272,7 +272,7 @@ class CompetitionContents extends Component{
|
|
|
|
|
<li className=" pr Competitioncenter ">
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan-three.png")}/>
|
|
|
|
|
<div className={"mt10"}>
|
|
|
|
|
<a href={`/users/${item.user_login}`} className="color-dark">
|
|
|
|
|
<a href={`/users/${item.user_login}`} target={"_blank"} className="color-dark">
|
|
|
|
|
<img className={"rankingimg"} src={getImageUrl(`images/${item.user_image===null?`avatars/User/0?1442652658`:item.user_image}`)} />
|
|
|
|
|
<p className="task-hide rankName mt5 jinshaifont">{personal===undefined||personal===null?item.record_user_name:personal===true?item.record_user_name:item.team_name}</p>
|
|
|
|
|
</a>
|
|
|
|
@ -315,10 +315,14 @@ class CompetitionContents extends Component{
|
|
|
|
|
.col24{
|
|
|
|
|
width: 24%;
|
|
|
|
|
text-align: left;
|
|
|
|
|
padding-left: 16px;
|
|
|
|
|
padding-left: 33px;
|
|
|
|
|
}
|
|
|
|
|
.col15{
|
|
|
|
|
width: 15%;
|
|
|
|
|
width: 14%;
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
.col10{
|
|
|
|
|
width: 10%;
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
@ -337,7 +341,7 @@ class CompetitionContents extends Component{
|
|
|
|
|
<Col className="textleft" span={9} order={3}>
|
|
|
|
|
{/*{item.team_name}*/}
|
|
|
|
|
</Col>
|
|
|
|
|
<Col span={3} order={4}>
|
|
|
|
|
<Col span={3} order={4} className={"col10"}>
|
|
|
|
|
{this.props&&this.props.mode===1?item.cost_time:""}
|
|
|
|
|
</Col>
|
|
|
|
|
<Col className="textright" span={3} order={5} className={"col15"}>
|
|
|
|
@ -352,23 +356,20 @@ class CompetitionContents extends Component{
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.ant-table-tbody > tr > td:nth-last-child(4){
|
|
|
|
|
// line-height: 63px;
|
|
|
|
|
// width: 300px;
|
|
|
|
|
// height: 96px;
|
|
|
|
|
// // display: inline-flex;
|
|
|
|
|
// overflow: hidden;
|
|
|
|
|
// text-overflow: ellipsis;
|
|
|
|
|
// white-space: nowrap;
|
|
|
|
|
width: 150px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
max-width: 100px;
|
|
|
|
|
-o-text-overflow: ellipsis;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
cursor: default;
|
|
|
|
|
}
|
|
|
|
|
.ant-table-tbody > tr > td:nth-last-child(3){
|
|
|
|
|
// line-height: 63px;
|
|
|
|
|
// width: 290px;
|
|
|
|
|
// height: 96px;
|
|
|
|
|
// display: inline-block;
|
|
|
|
|
// overflow: hidden;
|
|
|
|
|
// text-overflow: ellipsis;
|
|
|
|
|
// white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
max-width: 200px;
|
|
|
|
|
-o-text-overflow: ellipsis;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
cursor: default;
|
|
|
|
|
}
|
|
|
|
|
.ant-table-tbody>tr>td, .ant-table-thead>tr>th {
|
|
|
|
|
padding: 5px;
|
|
|
|
|