lsc 2 years ago
parent
commit
9a4fdcbc28
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/components/study.vue

+ 3 - 2
src/components/study.vue

@@ -2419,7 +2419,7 @@ export default {
                   if (i == b[j].tool) {
                     if (data.type == 2) {
                       console.log(this.checkJson);
-                      for (var z = 0; z < this.checkJson[i].length; z++) {
+                      for (var z = 0; z < this.checkJson[q][w][i].length; z++) {
                         console.log(this.checkJson[q][w][i]);
                         console.log(this.checkJson[q][w][i][z]);
                         console.log(this.checkJson[q][w][i][z].checkPerent);
@@ -2431,10 +2431,11 @@ export default {
                           k < this.checkJson[q][w][i][z].checkCount.length;
                           k++
                         ) {
+                          console.log(this.checkJson[q][w][i][z])
                           this.checkJson[q][w][i][z].checkPerent.push(
                             Math.round(
                               (this.checkJson[q][w][i][z].checkCount[k] /
-                                parseInt(this.worksStudent[i].length)) *
+                                parseInt(this.worksStudent[q][w][i].length)) *
                                 100
                             )
                           );