yuanyiming 1 jaar geleden
bovenliggende
commit
d47dc4c4ef
1 gewijzigde bestanden met toevoegingen van 11 en 10 verwijderingen
  1. 11 10
      src/components/pages/kindStudentEva/test/report.vue

+ 11 - 10
src/components/pages/kindStudentEva/test/report.vue

@@ -231,10 +231,10 @@ export default {
           });
           // 数据分类底部标签
           this.categories = aaa;
-          console.log(1111);
+          // console.log(1111);
           // 处理数据数据
           this.countRadar();
-          console.log(222);
+          // console.log(222);
 
           // 柱状图
           this.countCro();
@@ -256,7 +256,7 @@ export default {
       this.ajax
         .get(this.$store.state.api + "selectTerm")
         .then(res => {
-          this.isLoading = false;
+          // this.isLoading = false;
           var yearJuri = res.data[0];
           for (var i = 0; i < yearJuri.length; i++) {
             if (yearJuri[i].defaultC == 1) {
@@ -310,7 +310,7 @@ export default {
           AvaData.forEach((item, index) => {
             this.classScoreData.push(JSON.parse(item.json));
           });
-          console.log('this.classScoreData',JSON.parse(JSON.stringify(this.classScoreData)) );
+          // console.log('this.classScoreData',JSON.parse(JSON.stringify(this.classScoreData)) );
           // 第一次渲染,要放在这里,不然没有办法循环班级平均数
           this.getData();
 
@@ -335,7 +335,6 @@ export default {
         .then(res => {
           // console.log("获取打分数据", res);
 
-          this.isLoading = false;
           if (!res.data[0].length) {
             // this.clearRadarData();
             this.isShow = true;
@@ -349,7 +348,7 @@ export default {
 
           // console.log("this.radarData", this.radarData);
           this.getVeidooType();
-          this.fullscreenLoading = false;
+          this.isLoading = false;
 
           // this.getEvidence();
 
@@ -421,12 +420,12 @@ export default {
 // 班级平均分数据开始
       // console.log("????", this.classScoreData);
       // 先将每个学生的小分类整理好,放在child里面
-      console.log('this.classScoreData',this.classScoreData);
+      // console.log('this.classScoreData',this.classScoreData);
 
       this.classScoreData.forEach(i => {
         for (let j in i) {
           i[j].child = [];
-          console.log(i[j]);
+          // console.log(i[j]);
           for (let k in i[j]) {
             if (k != "child") {
               i[j].child.push(i[j][k][i[j][k].id]);
@@ -434,7 +433,7 @@ export default {
           }
         }
       });
-      console.log(333);
+      // console.log(333);
 
       // 将学生每个大分类的平均分整合
       this.classScoreData.forEach(i => {
@@ -452,7 +451,7 @@ export default {
           });
         }
       });
-      console.log(444);
+      // console.log(444);
 
       // 获取学生大分类平均分
       this.classScoreData.forEach(i => {
@@ -499,6 +498,8 @@ export default {
         raDataCopy[2].push(e.num[2]);
       });
       this.chartData = raDataCopy;
+      this.fullscreenLoading = false;
+
       // console.log("raDataCopy", raDataCopy);
     },
     // 柱状图