parent
9ced850b88
commit
12bd542196
|
|
@ -110,7 +110,7 @@ const columns = [
|
|||
|
||||
{
|
||||
key: 'status',
|
||||
title: '状态',
|
||||
title: '状态(分数标红为疑似抄袭)',
|
||||
width: '116',
|
||||
align: 'center',
|
||||
render: (row) => {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue