Merge branch 'gitlink_ssr_head' of https://gitlink.org.cn/Gitlink/forgeplus-react into pre_gitlink_ssr
This commit is contained in:
commit
592727e847
|
@ -1,18 +1,20 @@
|
|||
import fetch from './fetch';
|
||||
|
||||
// 当前glcc
|
||||
export const currentRound = 3;
|
||||
export const currentRound = 4;
|
||||
export const rewardMoney = "现金奖励"
|
||||
export const rewardSettingRound = 3;
|
||||
export const yearByRound = {
|
||||
1: 2022,
|
||||
2: 2023,
|
||||
3: 2024
|
||||
3: 2024,
|
||||
4: 2025
|
||||
}
|
||||
export const roundByYear = {
|
||||
2022: 1,
|
||||
2023: 2,
|
||||
2024: 3
|
||||
2024: 3,
|
||||
2025: 4
|
||||
}
|
||||
|
||||
// 获取当前用户项目报名信息(项目、课题)
|
||||
|
|
|
@ -24,7 +24,7 @@ import './index.scss';
|
|||
// period: 项目报名阶段("repoApply")
|
||||
// match:{params:{id=2023}} 注意默认值记得每届修改
|
||||
export default (props) => {
|
||||
const { current_user, history, round, match:{params:{id=2024}}, period, showLoginDialog, glccSettings, repoPublic, showMatchingBut, isResultPublic, hasRole, isMediumExamineByToTutor, isFinalExamineByToTutor, checkedTaskId, mediumExaminationPass} = props;
|
||||
const { current_user, history, round, match:{params:{id=yearByRound[currentRound]}}, period, showLoginDialog, glccSettings, repoPublic, showMatchingBut, isResultPublic, hasRole, isMediumExamineByToTutor, isFinalExamineByToTutor, checkedTaskId, mediumExaminationPass} = props;
|
||||
useEffect(() => {
|
||||
if (!current_user.user_id) {
|
||||
history.push('/403');
|
||||
|
|
|
@ -54,7 +54,7 @@ function TimerShaft(props) {
|
|||
},
|
||||
{
|
||||
title: "Step2",
|
||||
date: "11月",
|
||||
date: "10月",
|
||||
content: "优秀项目/学生公布及颁奖",
|
||||
noArrow: true,
|
||||
}]
|
||||
|
@ -79,6 +79,9 @@ function TimerShaft(props) {
|
|||
step[0].date = formatParsedResult([{value: repoApply}], "startMonthDay")
|
||||
step[1].date = formatParsedResult([{value: repoApply}], "rangeConcatDot")
|
||||
}
|
||||
// 审核项目及课题
|
||||
const auditProject = setting["auditProject"];
|
||||
auditProject && (step[2].date = formatParsedResult([{value: auditProject}], "rangeConcatDot"))
|
||||
// 学生报名
|
||||
const stuApply = setting["stuApply"];
|
||||
stuApply && (step[3].date = formatParsedResult([{value: stuApply}], "rangeConcatDot"))
|
||||
|
|
|
@ -355,7 +355,7 @@ const Glcc = (propsF) => {
|
|||
></Route>
|
||||
|
||||
{/* 中期/结项审核-结果公示 */}
|
||||
{(period === "mediumExamine3" || period === "finalExamine3") &&
|
||||
{(period === "mediumExamine3" || period === "finalExamine3" || round !== currentRound) &&
|
||||
<Route
|
||||
path="/glcc/:id/result"
|
||||
render={(props) => (
|
||||
|
|
|
@ -24,6 +24,11 @@ function SiderBar() {
|
|||
GLCC2023
|
||||
</a>
|
||||
</Menu.Item>
|
||||
<Menu.Item>
|
||||
<a target="_blank" rel="noopener noreferrer" href="/glcc/2024">
|
||||
GLCC2024
|
||||
</a>
|
||||
</Menu.Item>
|
||||
</Menu>
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue