|
@@ -208,6 +208,7 @@ export default {
|
|
|
boolOptions: objectToOptions(boolOptions),
|
|
|
courseTypes: [],
|
|
|
courseTypesByType: {},
|
|
|
+ loading: false,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -240,6 +241,10 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async FetchOrganizationCourseUnitPriceSettings () {
|
|
|
+ if (this.loading) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.loading = true
|
|
|
try {
|
|
|
if (this.form.organId && this.form.chargeTypeId) {
|
|
|
this.$set(this.form, 'details', [{}])
|
|
@@ -257,6 +262,7 @@ export default {
|
|
|
|
|
|
}
|
|
|
} catch (error) { }
|
|
|
+ this.loading = false
|
|
|
},
|
|
|
courseItemChange (item, index) {
|
|
|
if (item.courseType) {
|