|
@@ -263,7 +263,7 @@ export default {
|
|
|
organId,
|
|
|
});
|
|
|
const ids = res.data.rows.map(item => item.id)
|
|
|
- if (!ids.concat(this.form.musicGroupOrganizationCourseSettingId)) {
|
|
|
+ if (!ids.includes(this.form.musicGroupOrganizationCourseSettingId)) {
|
|
|
this.$set(this.form, 'musicGroupOrganizationCourseSettingId', null)
|
|
|
}
|
|
|
this.charges = res.data.rows;
|
|
@@ -298,7 +298,9 @@ export default {
|
|
|
.map((item) => item.$refs.form);
|
|
|
},
|
|
|
changeActive() {
|
|
|
- this.$listeners.changeActive()
|
|
|
+ if (this.$listeners.changeActive) {
|
|
|
+ this.$listeners.changeActive()
|
|
|
+ }
|
|
|
},
|
|
|
async submit() {
|
|
|
const forms = this.getForms();
|