Browse Source

修改逻辑

lex 2 years ago
parent
commit
ee1b9318f9
1 changed files with 14 additions and 2 deletions
  1. 14 2
      src/views/resetTeaming/modals/payTeamCourse.vue

+ 14 - 2
src/views/resetTeaming/modals/payTeamCourse.vue

@@ -256,9 +256,21 @@ export default {
       showisMusicGroupFee: false
     };
   },
-  mounted() {},
+  mounted() {
+    console.log(
+      this.courseUnitPriceSettingsByType,
+      "courseUnitPriceSettingsByType"
+    );
+  },
   methods: {
-    courseItemChange(row, index) {},
+    courseItemChange(row, index) {
+      if (this.form.leixing == 2) {
+        console.log(row, "courseItemChange", index);
+        const course = this.courseUnitPriceSettingsByType[row.courseType];
+        console.log(course, "course");
+        this.form.eclass[index].unitPrice = course.unitPrice || 0;
+      }
+    },
     priceChange(row, index) {},
     isOptionDisabled(key) {
       const selected = this.form.eclass.map(item => item.courseType);