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 @@ 教师评语