|
@@ -1075,6 +1075,7 @@ export default {
|
|
courseTypeId: [],
|
|
courseTypeId: [],
|
|
courseTypeSon: [],
|
|
courseTypeSon: [],
|
|
clearArray: [],
|
|
clearArray: [],
|
|
|
|
+ loading:false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -1867,6 +1868,7 @@ export default {
|
|
this.ajax
|
|
this.ajax
|
|
.get(this.$store.state.api + "select_course_detail", params)
|
|
.get(this.$store.state.api + "select_course_detail", params)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
|
+ this.loading = true;
|
|
this.unitJson = JSON.parse(res.data[0][0].chapters);
|
|
this.unitJson = JSON.parse(res.data[0][0].chapters);
|
|
// this.unitJson[0].chapterInfo = JSON.parse(res.data[0][0].chapters);
|
|
// this.unitJson[0].chapterInfo = JSON.parse(res.data[0][0].chapters);
|
|
for (var j in this.unitJson) {
|
|
for (var j in this.unitJson) {
|
|
@@ -1932,10 +1934,13 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- this.selectCourseDetail();
|
|
|
|
this.getStudent();
|
|
this.getStudent();
|
|
this.getTemplate();
|
|
this.getTemplate();
|
|
this.selectType();
|
|
this.selectType();
|
|
|
|
+ this.loading = false;
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.selectCourseDetail();
|
|
|
|
+ }, 500);
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|