xiaofei 1 سال پیش
والد
کامیت
15e8ef154d

+ 2 - 2
src/modules/base/components/course-simple/ModifyCourseSimple.vue

@@ -62,14 +62,14 @@ export default {
     },
     async submit() {
       if (!this.selectedCourseIds.length) {
-        this.$message.error("请选择科目");
+        this.$message.error("请选择课程");
         return;
       }
 
       if (this.isSubmit) return;
       this.isSubmit = true;
       const data = await batchAddCourseSimple({
-        courseCodeList: this.selectedCourseIds,
+        courseIds: this.selectedCourseIds,
         examId: this.course.examId,
       }).catch(() => {});
       this.isSubmit = false;

+ 1 - 1
src/modules/base/components/course-simple/SelectSimpleCourse.vue

@@ -119,7 +119,7 @@ export default {
       this.emitChange();
     },
     handleSelectionChange(val) {
-      this.multipleSelection = val.map((item) => item.courseCode);
+      this.multipleSelection = val.map((item) => item.basicCourseId);
       this.emitChange();
     },
     emitChange() {