|
@@ -610,7 +610,10 @@ export default {
|
|
this.modalForm.classId = this.model2ClassIds.join();
|
|
this.modalForm.classId = this.model2ClassIds.join();
|
|
this.model2Students = selectedStudents
|
|
this.model2Students = selectedStudents
|
|
.map((item) => item.children)
|
|
.map((item) => item.children)
|
|
- .flat();
|
|
|
|
|
|
+ .flat()
|
|
|
|
+ .map((item) => {
|
|
|
|
+ return { ...item, enable: true };
|
|
|
|
+ });
|
|
if (this.IS_REBUILD) {
|
|
if (this.IS_REBUILD) {
|
|
this.modalForm.totalSubjects = this.model2Students.length;
|
|
this.modalForm.totalSubjects = this.model2Students.length;
|
|
}
|
|
}
|
|
@@ -644,6 +647,7 @@ export default {
|
|
},
|
|
},
|
|
toViewStudent(row) {
|
|
toViewStudent(row) {
|
|
// console.log(row);
|
|
// console.log(row);
|
|
|
|
+ this.curRow = row;
|
|
this.examStudentList = row.examTaskStudentObjectParamList;
|
|
this.examStudentList = row.examTaskStudentObjectParamList;
|
|
this.$refs.PreviewTaskStudent.open();
|
|
this.$refs.PreviewTaskStudent.open();
|
|
},
|
|
},
|
|
@@ -652,10 +656,15 @@ export default {
|
|
this.$refs.PreviewTaskStudent.open();
|
|
this.$refs.PreviewTaskStudent.open();
|
|
},
|
|
},
|
|
previewStudentClosed() {
|
|
previewStudentClosed() {
|
|
- const studentCount = this.curRow.examTaskStudentObjectParamList.filter(
|
|
|
|
|
|
+ const studentCount = this.examStudentList.filter(
|
|
(item) => item.enable
|
|
(item) => item.enable
|
|
).length;
|
|
).length;
|
|
|
|
|
|
|
|
+ if (this.IS_MODEL2 || this.IS_REBUILD) {
|
|
|
|
+ this.modalForm.totalSubjects = studentCount;
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
Object.assign(this.curRow, {
|
|
Object.assign(this.curRow, {
|
|
...this.getBackupCount(studentCount),
|
|
...this.getBackupCount(studentCount),
|
|
studentCount,
|
|
studentCount,
|