lsc 2 years ago
parent
commit
968ff90b6b
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/components/study.vue

+ 7 - 7
src/components/study.vue

@@ -856,7 +856,7 @@
                       </div>
                     </div>
                     <div
-                      v-if="tType && tType == 1 && tool.tool.indexOf(4) != -1"
+                      v-if="worksStudent[jdIndex] && worksStudent[jdIndex][rwIndex] && tType && tType == 1 && tool.tool.indexOf(4) != -1"
                       class="worksBox"
                     >
                       <div
@@ -937,7 +937,7 @@
                       ></AskStatic>
                     </div>
                     <div
-                      v-if="tType && tType == 1 && tool.tool.indexOf(15) != -1"
+                      v-if="worksStudent[jdIndex] && worksStudent[jdIndex][rwIndex] && tType && tType == 1 && tool.tool.indexOf(15) != -1"
                       class="worksBox"
                     >
                       <div
@@ -997,7 +997,7 @@
                       </div>
                     </div>
                     <div
-                      v-if="tType && tType == 1 && tool.tool.indexOf(1) != -1"
+                      v-if="worksStudent[jdIndex] && worksStudent[jdIndex][rwIndex] && tType && tType == 1 && tool.tool.indexOf(1) != -1"
                       class="worksBox"
                     >
                       <div
@@ -1049,7 +1049,7 @@
                       </div>
                     </div>
                     <div
-                      v-if="tType && tType == 1 && tool.tool.indexOf(3) != -1"
+                      v-if="worksStudent[jdIndex] && worksStudent[jdIndex][rwIndex] && tType && tType == 1 && tool.tool.indexOf(3) != -1"
                       class="worksBox"
                     >
                       <div
@@ -1101,7 +1101,7 @@
                       </div>
                     </div>
                     <div
-                      v-if="tType && tType == 1 && tool.tool.indexOf(6) != -1"
+                      v-if="worksStudent[jdIndex] && worksStudent[jdIndex][rwIndex] && tType && tType == 1 && tool.tool.indexOf(6) != -1"
                       class="worksBox"
                     >
                       <div
@@ -1153,7 +1153,7 @@
                       </div>
                     </div>
                     <div
-                      v-if="tType && tType == 1 && tool.tool.indexOf(7) != -1"
+                      v-if="worksStudent[jdIndex] && worksStudent[jdIndex][rwIndex] && tType && tType == 1 && tool.tool.indexOf(7) != -1"
                       class="worksBox"
                     >
                       <div
@@ -1205,7 +1205,7 @@
                       </div>
                     </div>
                     <div
-                      v-if="tType && tType == 1 && tool.tool.indexOf(26) != -1"
+                      v-if="worksStudent[jdIndex] && worksStudent[jdIndex][rwIndex] && tType && tType == 1 && tool.tool.indexOf(26) != -1"
                       class="worksBox"
                     >
                       <div