Merge branch 'gitlink_ssr_head' of https://gitlink.org.cn/Gitlink/forgeplus-react into pre_gitlink_ssr

This commit is contained in:
谢思 2025-04-18 08:37:17 +08:00
commit 592727e847
5 changed files with 16 additions and 6 deletions

View File

@ -1,18 +1,20 @@
import fetch from './fetch'; import fetch from './fetch';
// 当前glcc // 当前glcc
export const currentRound = 3; export const currentRound = 4;
export const rewardMoney = "现金奖励" export const rewardMoney = "现金奖励"
export const rewardSettingRound = 3; export const rewardSettingRound = 3;
export const yearByRound = { export const yearByRound = {
1: 2022, 1: 2022,
2: 2023, 2: 2023,
3: 2024 3: 2024,
4: 2025
} }
export const roundByYear = { export const roundByYear = {
2022: 1, 2022: 1,
2023: 2, 2023: 2,
2024: 3 2024: 3,
2025: 4
} }
// 获取当前用户项目报名信息(项目、课题) // 获取当前用户项目报名信息(项目、课题)

View File

@ -24,7 +24,7 @@ import './index.scss';
// period: "repoApply" // period: "repoApply"
// match:{params:{id=2023}} // match:{params:{id=2023}}
export default (props) => { 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(() => { useEffect(() => {
if (!current_user.user_id) { if (!current_user.user_id) {
history.push('/403'); history.push('/403');

View File

@ -54,7 +54,7 @@ function TimerShaft(props) {
}, },
{ {
title: "Step2", title: "Step2",
date: "11月", date: "10月",
content: "优秀项目/学生公布及颁奖", content: "优秀项目/学生公布及颁奖",
noArrow: true, noArrow: true,
}] }]
@ -79,6 +79,9 @@ function TimerShaft(props) {
step[0].date = formatParsedResult([{value: repoApply}], "startMonthDay") step[0].date = formatParsedResult([{value: repoApply}], "startMonthDay")
step[1].date = formatParsedResult([{value: repoApply}], "rangeConcatDot") step[1].date = formatParsedResult([{value: repoApply}], "rangeConcatDot")
} }
//
const auditProject = setting["auditProject"];
auditProject && (step[2].date = formatParsedResult([{value: auditProject}], "rangeConcatDot"))
// //
const stuApply = setting["stuApply"]; const stuApply = setting["stuApply"];
stuApply && (step[3].date = formatParsedResult([{value: stuApply}], "rangeConcatDot")) stuApply && (step[3].date = formatParsedResult([{value: stuApply}], "rangeConcatDot"))

View File

@ -355,7 +355,7 @@ const Glcc = (propsF) => {
></Route> ></Route>
{/* 中期/结项审核-结果公示 */} {/* 中期/结项审核-结果公示 */}
{(period === "mediumExamine3" || period === "finalExamine3") && {(period === "mediumExamine3" || period === "finalExamine3" || round !== currentRound) &&
<Route <Route
path="/glcc/:id/result" path="/glcc/:id/result"
render={(props) => ( render={(props) => (

View File

@ -24,6 +24,11 @@ function SiderBar() {
GLCC2023 GLCC2023
</a> </a>
</Menu.Item> </Menu.Item>
<Menu.Item>
<a target="_blank" rel="noopener noreferrer" href="/glcc/2024">
GLCC2024
</a>
</Menu.Item>
</Menu> </Menu>
); );