|
@@ -12,6 +12,7 @@
|
|
|
@changeActive="changeActive"
|
|
|
:typeList="typeList"
|
|
|
:charges="charges"
|
|
|
+ :rowDetail="rowDetail"
|
|
|
:chargeTypeName="chargeTypeName"
|
|
|
:paymentType="paymentType"
|
|
|
ref="base" />
|
|
@@ -182,7 +183,6 @@ export default {
|
|
|
const res = await queryByMusicGroupOrganizationCourseSettingsId({
|
|
|
id: val
|
|
|
})
|
|
|
- console.log(res.data)
|
|
|
this.eclass = res.data.filter(item => {
|
|
|
return !item.isStudentOptional || this.paymentType !== undefined
|
|
|
}) || [{}];
|
|
@@ -192,17 +192,6 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted () {
|
|
|
- if (this.rowDetail) {
|
|
|
- for (const key in paymentTypeFormat) {
|
|
|
- if (paymentTypeFormat.hasOwnProperty(key)) {
|
|
|
- const item = paymentTypeFormat[key];
|
|
|
- if (item === this.rowDetail.paymentType) {
|
|
|
- console.log(key)
|
|
|
- this.paymentType = key
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
this.formatCourse()
|
|
|
this.init();
|
|
|
},
|
|
@@ -214,6 +203,14 @@ export default {
|
|
|
init () {
|
|
|
this.getCharges();
|
|
|
if (this.rowDetail) {
|
|
|
+ for (const key in paymentTypeFormat) {
|
|
|
+ if (paymentTypeFormat.hasOwnProperty(key)) {
|
|
|
+ const item = paymentTypeFormat[key];
|
|
|
+ if (item === this.rowDetail.paymentType) {
|
|
|
+ this.paymentType = key
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
this.form.musicGroupOrganizationCourseSettingId = this.rowDetail.musicGroupOrganizationCourseSettingId;
|
|
|
this.$set(
|
|
|
this.other,
|