|
@@ -88,7 +88,7 @@ export default {
|
|
return [];
|
|
return [];
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- courseId: {
|
|
|
|
|
|
+ courseCode: {
|
|
type: String,
|
|
type: String,
|
|
default: ""
|
|
default: ""
|
|
}
|
|
}
|
|
@@ -98,7 +98,7 @@ export default {
|
|
return {
|
|
return {
|
|
modalIsShow: false,
|
|
modalIsShow: false,
|
|
examObjectType: "TEACH_CLAZZ_STUDENT",
|
|
examObjectType: "TEACH_CLAZZ_STUDENT",
|
|
- basicCourseId: null,
|
|
|
|
|
|
+ basicCourseCode: null,
|
|
EXAM_OBJECT_TYPE,
|
|
EXAM_OBJECT_TYPE,
|
|
dataTree: {
|
|
dataTree: {
|
|
TEACH_CLAZZ_STUDENT: [],
|
|
TEACH_CLAZZ_STUDENT: [],
|
|
@@ -120,7 +120,7 @@ export default {
|
|
examObjectType: examObjectType || this.examObjectType
|
|
examObjectType: examObjectType || this.examObjectType
|
|
};
|
|
};
|
|
if (datas.examObjectType === "TEACH_CLAZZ_STUDENT")
|
|
if (datas.examObjectType === "TEACH_CLAZZ_STUDENT")
|
|
- datas.basicCourseId = this.courseId;
|
|
|
|
|
|
+ datas.courseCode = this.courseCode;
|
|
const data = await uploadOrFindExamTaskStudent(datas);
|
|
const data = await uploadOrFindExamTaskStudent(datas);
|
|
this.dataTree[datas.examObjectType] = this.parseStudentData(data);
|
|
this.dataTree[datas.examObjectType] = this.parseStudentData(data);
|
|
},
|
|
},
|
|
@@ -206,8 +206,8 @@ export default {
|
|
this.checkChange();
|
|
this.checkChange();
|
|
},
|
|
},
|
|
async visibleChange() {
|
|
async visibleChange() {
|
|
- if (this.basicCourseId !== this.courseId) {
|
|
|
|
- this.basicCourseId = this.courseId;
|
|
|
|
|
|
+ if (this.basicCourseCode !== this.courseCode) {
|
|
|
|
+ this.basicCourseCode = this.courseCode;
|
|
await this.getStudents("TEACH_CLAZZ_STUDENT");
|
|
await this.getStudents("TEACH_CLAZZ_STUDENT");
|
|
}
|
|
}
|
|
|
|
|