forked from Gitlink/forgeplus-react
排行榜修改
This commit is contained in:
parent
6a84a0ca64
commit
72bd46d68d
File diff suppressed because it is too large
Load Diff
|
|
@ -48,6 +48,44 @@ function Rank({ isLocal, match }) {
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
const columns2023 = [
|
||||||
|
{
|
||||||
|
title: '排名',
|
||||||
|
dataIndex: 'rank_num',
|
||||||
|
className: 'ranking-num',
|
||||||
|
render: (text, record, i) => {
|
||||||
|
return text < 4 ? <div className={`rank-icon rank${text}`}></div> : text
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '参赛单位',
|
||||||
|
dataIndex: 'org_name',
|
||||||
|
width: '30%',
|
||||||
|
render: (text, record) => {
|
||||||
|
return <Tooltip title={text} placement="topLeft">{text}</Tooltip>;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '参赛队长',
|
||||||
|
dataIndex: 'leader',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '得分F1',
|
||||||
|
dataIndex: 'f1',
|
||||||
|
className: 'textCenter',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '得分P',
|
||||||
|
dataIndex: 'precision',
|
||||||
|
className: 'textCenter',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '得分R',
|
||||||
|
dataIndex: 'recall',
|
||||||
|
className: 'textCenter',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
rankingList(competitionId, {
|
rankingList(competitionId, {
|
||||||
page: curPage,
|
page: curPage,
|
||||||
|
|
@ -91,7 +129,7 @@ function Rank({ isLocal, match }) {
|
||||||
<PaginationTable
|
<PaginationTable
|
||||||
loading={loading}
|
loading={loading}
|
||||||
dataSource={list}
|
dataSource={list}
|
||||||
columns={columns}
|
columns={competitionId === 'zstp2023' ? columns2023 : columns}
|
||||||
total={total}
|
total={total}
|
||||||
setCurPage={(page) => setCurPage(page)}
|
setCurPage={(page) => setCurPage(page)}
|
||||||
current={curPage}
|
current={curPage}
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ function Introduce({ form, showNotification, match, history, enrollStatus, curre
|
||||||
<div className="refer_tit">上传作品</div>
|
<div className="refer_tit">上传作品</div>
|
||||||
{upload ? <div className="refer_content">
|
{upload ? <div className="refer_content">
|
||||||
<img src={ccks_upload} className="refer_img mb20" alt="" />
|
<img src={ccks_upload} className="refer_img mb20" alt="" />
|
||||||
<div className="refer_tip">请上传小于50M的作品</div>
|
<div className="refer_tip">请上传小于50M的result.json文件</div>
|
||||||
<Upload
|
<Upload
|
||||||
// accept=".csv"
|
// accept=".csv"
|
||||||
// 开发时 action需要添加?debug=admin
|
// 开发时 action需要添加?debug=admin
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue