mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-07 01:46:43 +08:00
--fix bug
This commit is contained in:
@@ -297,10 +297,11 @@ const columns = ref([
|
||||
key: "opacation",
|
||||
width: 100,
|
||||
align: "center",
|
||||
customRender: ({record:{workStatus,answerId,examinationScore,studentId}}) =>
|
||||
customRender: ({record:{workStatus,answerId,examinationScore,studentId,finishStatus}}) =>
|
||||
<div style="display:flex;justify-content:center;">
|
||||
{examinationScore?<a className="opa" style={{color: examinationScore ? '' : '#666', marginRight: '12px'}} onClick={() => examinationScore && showExamAnswer(answerId)}>查看答卷</a>:''}
|
||||
{workStatus ? <a class="opa" style={{color:workStatus?'':'#666'}} onClick={() => workStatus && showCWvisible(studentId)}>查看作业</a>:''}
|
||||
{finishStatus != 1 ? <a className="opa" onClick={() => finishTask(studentId)}>标记为完成</a> : ''}
|
||||
</div>
|
||||
},
|
||||
]);
|
||||
@@ -339,6 +340,23 @@ const batchFinish = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const finishTask = (stuId) => dialog({
|
||||
content: "确定标注完成吗?",
|
||||
ok: async () => {
|
||||
message.success("标注完成成功");
|
||||
tableRef.value.toLoading();
|
||||
await api.batchFinishTask({
|
||||
ids: [stuId],
|
||||
type: 3,
|
||||
taskId: props.datasource.routerTaskId,
|
||||
pid: offcoursePlanId.value,
|
||||
taskType: props.datasource.type,
|
||||
currentStageId: props.datasource.currentStageId,
|
||||
});
|
||||
tableRef.value.fetch();
|
||||
},
|
||||
});
|
||||
|
||||
const answerId = ref('');
|
||||
const showExamAnswer = (id) => {
|
||||
answerId.value = id;
|
||||
|
||||
Reference in New Issue
Block a user