批量录入成绩
@@ -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 (
)
+
+
);
}
},
]);
-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;