lsc 2 years ago
parent
commit
23f76577b6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/components/study.vue
  2. 1 1
      src/components/studyStudent.vue

+ 1 - 1
src/components/study.vue

@@ -1178,7 +1178,7 @@
                         tType &&
                         tType == 3 &&
                         tool.tool.indexOf(4) != -1 &&
-                        (tool.askJson[0].answer || tool.askJson[0].answer === 0)
+                        (tool.askJson[0].answer || tool.askJson[0].answer === 0)  && checkJson[jdIndex][rwIndex][toolIndex].length
                       "
                       class="xuan_right_box"
                     >

+ 1 - 1
src/components/studyStudent.vue

@@ -878,7 +878,7 @@
                   <div v-if="
                     tType &&
                     ((tType == 2 && sIsOpen == true) || tType == 1 || tType == 4) &&
-                    tool.tool.indexOf(4) != -1 && (tool.askJson[0].answer || tool.askJson[0].answer === 0)
+                    tool.tool.indexOf(4) != -1 && (tool.askJson[0].answer || tool.askJson[0].answer === 0) && checkJson[toolIndex].length
                   " class="xuan_right_box">
                     <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
                       <div>