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