|
@@ -579,9 +579,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async getCourses() {
|
|
|
- if (!this.examTask.teachingRoomId) return;
|
|
|
+ if (!this.examTask.teachingRoomId || !this.examTask.examId) return;
|
|
|
const res = await courseQuery({
|
|
|
teachingRoomId: this.examTask.teachingRoomId,
|
|
|
+ examId: this.examTask.examId,
|
|
|
});
|
|
|
const teachingCourseIds = res.teachCourseList.map((item) => item.id);
|
|
|
this.courses = [
|
|
@@ -604,7 +605,11 @@ export default {
|
|
|
if (!val.id) return;
|
|
|
this.examTask.examModel = val.examModel;
|
|
|
this.examTask.category = val.category;
|
|
|
- this.clearTaskData();
|
|
|
+ // this.clearTaskData();
|
|
|
+
|
|
|
+ this.examTask.courseId = "";
|
|
|
+ this.getCourses();
|
|
|
+ this.courseChange();
|
|
|
},
|
|
|
courseChange(val) {
|
|
|
if (val) {
|