|
@@ -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);
|