diff --git a/src/components/drawers/CheckWork.vue b/src/components/drawers/CheckWork.vue index 15d6a061..6aa0d086 100644 --- a/src/components/drawers/CheckWork.vue +++ b/src/components/drawers/CheckWork.vue @@ -106,8 +106,8 @@
- - + +
diff --git a/src/components/drawers/project/ProjectFaceTaskManage.vue b/src/components/drawers/project/ProjectFaceTaskManage.vue index 8f77d365..7843fb64 100644 --- a/src/components/drawers/project/ProjectFaceTaskManage.vue +++ b/src/components/drawers/project/ProjectFaceTaskManage.vue @@ -125,7 +125,7 @@ { - return ( + customRender: ({record:{workStatus,answerId,examinationScore,studentId}}) =>
- { - text.record.answerId ? - { - showExamAnswer(text); - }}> - 查看答卷 - - :
- 查看答卷 -
- } - { - text.record.workScore !== -2 ? - { - showCWvisible(text.record.studentId); - }}> - 查看作业 - - :
- 查看作业 -
- } - -
); - } + examinationScore && showExamAnswer(answerId)}>查看答卷 + workStatus && showCWvisible(studentId)}>查看作业 + }, ]); watch(() => data.value, () => { @@ -373,9 +341,9 @@ const batchFinish = () => { const answerDatasource = ref(props.datasource); -const showExamAnswer = (text) => { +const showExamAnswer = (answerId) => { console.log(answerDatasource.value) - answerDatasource.value.answerId = String(text.record.answerId); + answerDatasource.value.answerId = answerId; CAvisible.value = true; };