From f5adb9f4919f4cbe6c718a5bfce1b46766a0bccb Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Wed, 22 Mar 2023 11:56:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E9=9D=A2=E6=8E=88?= =?UTF-8?q?=E8=AF=BE=E7=AE=A1=E7=90=86-=E6=9F=A5=E7=9C=8B=E7=AD=94?= =?UTF-8?q?=E5=8D=B7-=E6=9F=A5=E7=9C=8B=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../drawers/project/ProjectFaceTaskManage.vue | 69 ++++++++++++++++++- 1 file changed, 66 insertions(+), 3 deletions(-) diff --git a/src/components/drawers/project/ProjectFaceTaskManage.vue b/src/components/drawers/project/ProjectFaceTaskManage.vue index 2ada1820..c9c504fb 100644 --- a/src/components/drawers/project/ProjectFaceTaskManage.vue +++ b/src/components/drawers/project/ProjectFaceTaskManage.vue @@ -120,6 +120,12 @@ + + data.value[coursePlanIndex.value]?.id || const homeWorkId = computed(() => data.value[coursePlanIndex.value]?.homeWorkId || ""); const infoId = computed(() => props.type === 1 ? props.datasource.projectId : props.datasource.routerId); const scoreTemplateUrl = ref(`${process.env.VUE_APP_BASE_API}/admin/student/exportHomeWorkTemplate?taskId=0&type=3&pid=${offcoursePlanId.value}&thirdType=3`); +const stuId = ref(""); const columns = ref([ { title: "工号", @@ -284,9 +293,53 @@ const columns = ref([ className: "h", dataIndex: "opacation", key: "opacation", - width: 50, + width: 100, align: "center", - customRender: (text) =>
showExamAnswer(text)}>{data.value[coursePlanIndex.value]?.answerId ? "查看答卷" : ""}
+ customRender: (text) => { + return ( +
+ { + showExamAnswer(text) + }}> + { text.record.answerId?"查看答卷":""} + + { + text.record.answerId? + { + showExamAnswer(text) + }}> + 查看答卷 + + :
+ 查看答卷 +
+ } + { + text.record.workScore==1? + { + showCWvisible(text.record.studentId) + }}> + 查看作业 + + :
+ 查看作业 +
+ } + +
) + } }, ]); watch(() => data.value.length, () => { @@ -328,6 +381,11 @@ const showExamAnswer = () => { CAvisible.value = true; }; +const showCWvisible = (id) => { + stuId.value = id; + CWvisible.value = true; +} + const searchTaskList = () => tableRef.value.fetch(); const exportTaskData = () => window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?type=3&pid=${offcoursePlanId.value}&thirdType=2`); @@ -375,7 +433,12 @@ function resetStudentPage() { padding: 0px; } } - +.RouterFaceStu { + .ant-drawer-content-wrapper{ + min-width: 1200px !important; + width: 1200px !important; + } +} .CopyModal { .ant-modal { width: 424px !important;