给撤回按钮加了点判断逻辑。

修改了相关模型来适应新的需求,准备算法接入。
This commit is contained in:
musteven 2025-04-18 21:54:47 +08:00
parent 9ced850b88
commit 12bd542196
4 changed files with 15 additions and 6 deletions

View File

@ -110,7 +110,7 @@ const columns = [
{
key: 'status',
title: '状态',
title: '状态(分数标红为疑似抄袭)',
width: '116',
align: 'center',
render: (row) => {

View File

@ -87,6 +87,7 @@ const fileUrls = ref([]); // 文件的URL列表
const attachment = ref(null);//已保存的文件信息
const isReportActionsDisabled = ref(false); // 控制ReportActions组件的禁用状态
const uploadComponent = ref(null); // 用于引用el-upload组件
const plagiarismStatus = ref(0); // 初始化抄袭状态
const getProblemInfo = async () => {
// 查询作业信息
@ -173,11 +174,17 @@ const getSubmitReportInfo = async () => {
} else {
attachment.value = null;
}
plagiarismStatus.value = res.data.plagiarismStatus; // 更新抄袭状态
if(plagiarismStatus.value ==="2") {//疑似抄袭,允许再次提交
isReportActionsDisabled.value = false; // 启用ReportActions组件
}
else{
if (res.data.score !== null && res.data.score !== undefined) {
isReportActionsDisabled.value = true; // 禁用ReportActions组件
} else {
isReportActionsDisabled.value = false; // 启用ReportActions组件
}
}
} catch (error) {
}

View File

@ -5,7 +5,6 @@
<span class="subtitle">教师评语</span>
</div>
<div class="description-content">
<span v-if="plagiarismStatus === '2'" class="plagiarism-warning">疑似抄袭!!<br></span>
<span v-if="comment" class="comment-text">{{ comment }}</span>
<span v-else class="no-comment-text">暂无评价</span>
</div>

View File

@ -39,5 +39,8 @@ public class SubmitReport {
private String comment;
@Column(name = "addTime")
private LocalDateTime addTime;
@Column(name = "simularity")
private Float simularity;
@Column(name = "similardocs")
private String similardocs;
}