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 (
+ )
+ }
},
]);
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;