From 12bd54219665bd7f9175bebcb7b1c6051ad0cfc4 Mon Sep 17 00:00:00 2001 From: musteven <1009173794@qq.com> Date: Fri, 18 Apr 2025 21:54:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E6=92=A4=E5=9B=9E=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=8A=A0=E4=BA=86=E7=82=B9=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E3=80=82=20=E4=BF=AE=E6=94=B9=E4=BA=86=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E6=9D=A5=E9=80=82=E5=BA=94=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E9=9C=80=E6=B1=82=EF=BC=8C=E5=87=86=E5=A4=87=E7=AE=97=E6=B3=95?= =?UTF-8?q?=E6=8E=A5=E5=85=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AES-front/src/views/user/exam-list/index.vue | 2 +- .../user/report-submit/components/leftparts.vue | 13 ++++++++++--- .../user/report-submit/components/rightparts.vue | 1 - .../com/example/aes/problem/model/SubmitReport.java | 5 ++++- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/AES-front/src/views/user/exam-list/index.vue b/AES-front/src/views/user/exam-list/index.vue index 6ab4c90..69080ac 100644 --- a/AES-front/src/views/user/exam-list/index.vue +++ b/AES-front/src/views/user/exam-list/index.vue @@ -110,7 +110,7 @@ const columns = [ { key: 'status', - title: '状态', + title: '状态(分数标红为疑似抄袭)', width: '116', align: 'center', render: (row) => { diff --git a/AES-front/src/views/user/report-submit/components/leftparts.vue b/AES-front/src/views/user/report-submit/components/leftparts.vue index 66621ed..a8b143c 100644 --- a/AES-front/src/views/user/report-submit/components/leftparts.vue +++ b/AES-front/src/views/user/report-submit/components/leftparts.vue @@ -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; } - if (res.data.score !== null && res.data.score !== undefined) { - isReportActionsDisabled.value = true; // 禁用ReportActions组件 - } else { + 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) { } diff --git a/AES-front/src/views/user/report-submit/components/rightparts.vue b/AES-front/src/views/user/report-submit/components/rightparts.vue index 0811b63..bafaba2 100644 --- a/AES-front/src/views/user/report-submit/components/rightparts.vue +++ b/AES-front/src/views/user/report-submit/components/rightparts.vue @@ -5,7 +5,6 @@ 教师评语
- 疑似抄袭!!
{{ comment }} 暂无评价
diff --git a/AES/src/main/java/com/example/aes/problem/model/SubmitReport.java b/AES/src/main/java/com/example/aes/problem/model/SubmitReport.java index edfda29..537a612 100644 --- a/AES/src/main/java/com/example/aes/problem/model/SubmitReport.java +++ b/AES/src/main/java/com/example/aes/problem/model/SubmitReport.java @@ -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; }