lsc 2 năm trước cách đây
mục cha
commit
9a4fdcbc28
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  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 (i == b[j].tool) {
                     if (data.type == 2) {
                     if (data.type == 2) {
                       console.log(this.checkJson);
                       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]);
                         console.log(this.checkJson[q][w][i][z]);
                         console.log(this.checkJson[q][w][i][z]);
                         console.log(this.checkJson[q][w][i][z].checkPerent);
                         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 < this.checkJson[q][w][i][z].checkCount.length;
                           k++
                           k++
                         ) {
                         ) {
+                          console.log(this.checkJson[q][w][i][z])
                           this.checkJson[q][w][i][z].checkPerent.push(
                           this.checkJson[q][w][i][z].checkPerent.push(
                             Math.round(
                             Math.round(
                               (this.checkJson[q][w][i][z].checkCount[k] /
                               (this.checkJson[q][w][i][z].checkCount[k] /
-                                parseInt(this.worksStudent[i].length)) *
+                                parseInt(this.worksStudent[q][w][i].length)) *
                                 100
                                 100
                             )
                             )
                           );
                           );