细节处理。
This commit is contained in:
parent
f53d9efe79
commit
60eb127de1
|
|
@ -32,7 +32,8 @@ const getJudgeInfo = async () => {
|
||||||
ElMessage.warning("尚未提交作业!")
|
ElMessage.warning("尚未提交作业!")
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
comment.value = res.data.comment; // 更新教师评语
|
// 更新教师或AI评语,如果教师评语为空,则使用AI评语
|
||||||
|
comment.value = res.data.comment || res.data.autocomment;
|
||||||
plagiarismStatus.value = res.data.plagiarismStatus; // 更新抄袭状态
|
plagiarismStatus.value = res.data.plagiarismStatus; // 更新抄袭状态
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
||||||
|
|
@ -179,9 +179,11 @@ public class ProblemServiceImpl implements ProblemServiceI {
|
||||||
pmProblem.setStatus("已撤回");
|
pmProblem.setStatus("已撤回");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 如果score不为空,则将status设置为score的具体值
|
// 如果score或者autoscore不为空,则将status设置为score的具体值
|
||||||
if (reportStatus.getScore() != null) {
|
if (reportStatus.getScore() != null) {
|
||||||
pmProblem.setStatus(String.format("%.2f", reportStatus.getScore()));
|
pmProblem.setStatus(String.format("%.2f", reportStatus.getScore()));
|
||||||
|
} else if (reportStatus.getAutoscore() != null) {
|
||||||
|
pmProblem.setStatus(String.format("%.2f", reportStatus.getAutoscore()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue