diff --git a/src/components/drawers/project/ProjectFaceTaskManage.vue b/src/components/drawers/project/ProjectFaceTaskManage.vue index c9c504fb..4b918e80 100644 --- a/src/components/drawers/project/ProjectFaceTaskManage.vue +++ b/src/components/drawers/project/ProjectFaceTaskManage.vue @@ -92,7 +92,9 @@
批量标注完成
- +
批量录入成绩
@@ -200,7 +202,7 @@ const { data = [], loading, fetchData } = useRequest(COURSE_PLAN_LIST, planParam const offcoursePlanId = computed(() => 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 scoreTemplateUrl = computed(() => `${process.env.VUE_APP_BASE_API}/admin/student/exportHomeWorkTemplate?taskId=0&type=3&pid=${offcoursePlanId.value}&thirdType=3`); const stuId = ref(""); const columns = ref([ { @@ -251,7 +253,7 @@ const columns = ref([ align: "center", ellipsis: true, className: "h", - customRender: ({ record: { workScore } }) => {workScore!==-2?workScore:"-" || "-"} + customRender: ({ record: { workScore } }) => {workScore !== -2 ? workScore : "-" || "-"} }, { title: "考试成绩", @@ -298,51 +300,51 @@ const columns = ref([ customRender: (text) => { return (
- { - showExamAnswer(text) + showExamAnswer(text); }}> - { text.record.answerId?"查看答卷":""} + {text.record.answerId ? "查看答卷" : ""} { - text.record.answerId? - { - showExamAnswer(text) - }}> - 查看答卷 - - :
- 查看答卷 -
+ text.record.answerId ? + { + showExamAnswer(text); + }}> + 查看答卷 + + :
+ 查看答卷 +
} { - text.record.workScore==1? - { - showCWvisible(text.record.studentId) - }}> - 查看作业 - - :
- 查看作业 -
+ text.record.workScore == 1 ? + { + showCWvisible(text.record.studentId); + }}> + 查看作业 + + :
+ 查看作业 +
} - -
) + +
); } }, ]); -watch(() => data.value.length, () => { +watch(() => data.value, () => { params.value.pid = data.value[coursePlanIndex.value]?.id || 0; tableRef.value.fetch(); }); @@ -384,7 +386,7 @@ const showExamAnswer = () => { const showCWvisible = (id) => { stuId.value = id; CWvisible.value = true; -} +}; const searchTaskList = () => tableRef.value.fetch(); @@ -405,7 +407,7 @@ function exportTaskStu() { const hasten = () => { message.success("催促成功"); - console.log(data.value[coursePlanIndex.value]) + console.log(data.value[coursePlanIndex.value]); batchSendMessage({ // courseId: props.datasource.courseId,//任务的Id courseId: data.value[coursePlanIndex.value].id,//任务的Id @@ -433,12 +435,14 @@ function resetStudentPage() { padding: 0px; } } + .RouterFaceStu { - .ant-drawer-content-wrapper{ + .ant-drawer-content-wrapper { min-width: 1200px !important; width: 1200px !important; } } + .CopyModal { .ant-modal { width: 424px !important;