|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="body1">
|
|
|
+ <div class="body1" v-loading="isLoading">
|
|
|
<!-- 课程数据 -->
|
|
|
<div class="left">
|
|
|
<div class="top">
|
|
@@ -385,6 +385,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ isLoading:false,
|
|
|
cType: "全部年级",
|
|
|
cType1: "全部年级",
|
|
|
cType2: "全部学科",
|
|
@@ -403,7 +404,9 @@ export default {
|
|
|
xtType: false,
|
|
|
};
|
|
|
},
|
|
|
- mounted() {},
|
|
|
+ mounted() {
|
|
|
+ this.getData()
|
|
|
+ },
|
|
|
methods: {
|
|
|
otherEchart() {
|
|
|
this.oType = !this.oType;
|
|
@@ -414,6 +417,29 @@ export default {
|
|
|
xtEchart(){
|
|
|
this.xtType = !this.xtType;
|
|
|
},
|
|
|
+ getData() {
|
|
|
+ this.isLoading = true;
|
|
|
+ let params = [
|
|
|
+ {
|
|
|
+ oid: this.oid,
|
|
|
+ org: this.org,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.api + "selectDataBoardCourseNew", params)
|
|
|
+ .then((res) => {
|
|
|
+ this.isLoading = false;
|
|
|
+ let _grade = res.data[0] //年级
|
|
|
+ let _subject = res.data[1] //学科
|
|
|
+ let _course = res.data[2] //课程
|
|
|
+
|
|
|
+ this.$forceUpdate();
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ this.isLoading = false;
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|