|
@@ -243,6 +243,7 @@ const initModalForm = {
|
|
printHouseId: "",
|
|
printHouseId: "",
|
|
backupCount: null,
|
|
backupCount: null,
|
|
className: "",
|
|
className: "",
|
|
|
|
+ basicStudentIds: [],
|
|
};
|
|
};
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -494,7 +495,7 @@ export default {
|
|
};
|
|
};
|
|
return data;
|
|
return data;
|
|
},
|
|
},
|
|
- examStudentModified({ selectedStudents, isSelectStudent }) {
|
|
|
|
|
|
+ examStudentModified({ selectedStudents }) {
|
|
if (this.IS_MODEL2 || this.IS_REBUILD) {
|
|
if (this.IS_MODEL2 || this.IS_REBUILD) {
|
|
this.model2ClassList = selectedStudents.map((item) => item.label);
|
|
this.model2ClassList = selectedStudents.map((item) => item.label);
|
|
this.modalForm.className = this.model2ClassList.join();
|
|
this.modalForm.className = this.model2ClassList.join();
|
|
@@ -504,6 +505,9 @@ export default {
|
|
.map((item) => {
|
|
.map((item) => {
|
|
return { ...item, enable: true };
|
|
return { ...item, enable: true };
|
|
});
|
|
});
|
|
|
|
+ this.modalForm.basicStudentIds = this.model2Students.map(
|
|
|
|
+ (item) => item.id
|
|
|
|
+ );
|
|
if (this.IS_REBUILD) {
|
|
if (this.IS_REBUILD) {
|
|
this.modalForm.totalSubjects = this.model2Students.length;
|
|
this.modalForm.totalSubjects = this.model2Students.length;
|
|
}
|
|
}
|
|
@@ -598,12 +602,12 @@ export default {
|
|
this.$refs.PreviewTaskStudent.open();
|
|
this.$refs.PreviewTaskStudent.open();
|
|
},
|
|
},
|
|
previewStudentClosed() {
|
|
previewStudentClosed() {
|
|
- const studentCount = this.examStudentList.filter(
|
|
|
|
- (item) => item.enable
|
|
|
|
- ).length;
|
|
|
|
|
|
+ const students = this.examStudentList.filter((item) => item.enable);
|
|
|
|
+ const studentCount = students.length;
|
|
|
|
|
|
if (this.IS_MODEL2 || this.IS_REBUILD) {
|
|
if (this.IS_MODEL2 || this.IS_REBUILD) {
|
|
this.modalForm.totalSubjects = studentCount;
|
|
this.modalForm.totalSubjects = studentCount;
|
|
|
|
+ this.modalForm.basicStudentIds = students.map((item) => item.id);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|