From e599e82bc9bd390fb9ec5ce78c27043d74a6d2de Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Thu, 23 Mar 2023 13:23:52 +0800 Subject: [PATCH] =?UTF-8?q?--fix=20=E9=9D=A2=E6=8E=88=E8=AF=BE=20=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E4=BD=9C=E4=B8=9Abug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/CheckWork.vue | 4 +- .../drawers/project/ProjectFaceTaskManage.vue | 46 +++---------------- 2 files changed, 9 insertions(+), 41 deletions(-) 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; };