parent
9ced850b88
commit
12bd542196
|
|
@ -110,7 +110,7 @@ const columns = [
|
||||||
|
|
||||||
{
|
{
|
||||||
key: 'status',
|
key: 'status',
|
||||||
title: '状态',
|
title: '状态(分数标红为疑似抄袭)',
|
||||||
width: '116',
|
width: '116',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
render: (row) => {
|
render: (row) => {
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,7 @@ const fileUrls = ref([]); // 文件的URL列表
|
||||||
const attachment = ref(null);//已保存的文件信息
|
const attachment = ref(null);//已保存的文件信息
|
||||||
const isReportActionsDisabled = ref(false); // 控制ReportActions组件的禁用状态
|
const isReportActionsDisabled = ref(false); // 控制ReportActions组件的禁用状态
|
||||||
const uploadComponent = ref(null); // 用于引用el-upload组件
|
const uploadComponent = ref(null); // 用于引用el-upload组件
|
||||||
|
const plagiarismStatus = ref(0); // 初始化抄袭状态
|
||||||
|
|
||||||
const getProblemInfo = async () => {
|
const getProblemInfo = async () => {
|
||||||
// 查询作业信息
|
// 查询作业信息
|
||||||
|
|
@ -173,11 +174,17 @@ const getSubmitReportInfo = async () => {
|
||||||
} else {
|
} else {
|
||||||
attachment.value = null;
|
attachment.value = null;
|
||||||
}
|
}
|
||||||
if (res.data.score !== null && res.data.score !== undefined) {
|
plagiarismStatus.value = res.data.plagiarismStatus; // 更新抄袭状态
|
||||||
isReportActionsDisabled.value = true; // 禁用ReportActions组件
|
if(plagiarismStatus.value ==="2") {//疑似抄袭,允许再次提交
|
||||||
} else {
|
|
||||||
isReportActionsDisabled.value = false; // 启用ReportActions组件
|
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) {
|
} catch (error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
<span class="subtitle">教师评语</span>
|
<span class="subtitle">教师评语</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="description-content">
|
<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-if="comment" class="comment-text">{{ comment }}</span>
|
||||||
<span v-else class="no-comment-text">暂无评价</span>
|
<span v-else class="no-comment-text">暂无评价</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -39,5 +39,8 @@ public class SubmitReport {
|
||||||
private String comment;
|
private String comment;
|
||||||
@Column(name = "addTime")
|
@Column(name = "addTime")
|
||||||
private LocalDateTime addTime;
|
private LocalDateTime addTime;
|
||||||
|
@Column(name = "simularity")
|
||||||
|
private Float simularity;
|
||||||
|
@Column(name = "similardocs")
|
||||||
|
private String similardocs;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue