Kaynağa Gözat

不需作答的不显示retry按钮

natasha 1 hafta önce
ebeveyn
işleme
2a521a0f29

+ 3 - 3
src/views/book/courseware/create/components/question/article/CheckArticle.vue

@@ -23,8 +23,8 @@
           <div class="remark-box" @click="showRemark(index)">
             <SvgIcon icon-class="edit-line" />{{
               item.remark && (item.remark.chs || item.remark.en || item.remark.img_list.length > 0)
-                ? '修改备注'
-                : '添加备注'
+                ? '修改气泡'
+                : '添加气泡'
             }}
           </div>
         </template>
@@ -77,7 +77,7 @@
     </el-dialog>
     <el-dialog
       v-if="remarkVisible"
-      title="标注"
+      title="气泡"
       :visible.sync="remarkVisible"
       width="50%"
       :close-on-click-modal="false"

+ 3 - 3
src/views/book/courseware/create/components/question/dialogue_article/Article.vue

@@ -89,8 +89,8 @@
             <div v-if="item.type !== 'notice'" class="remark-box" @click="showRemark(index)">
               <SvgIcon icon-class="edit-line" />{{
                 item.remark && (item.remark.chs || item.remark.en || item.remark.img_list.length > 0)
-                  ? '修改备注'
-                  : '添加备注'
+                  ? '修改气泡'
+                  : '添加气泡'
               }}
             </div>
           </div>
@@ -166,7 +166,7 @@
         </div>
       </div>
       <el-dialog
-        title="标注"
+        title="气泡"
         :visible.sync="remarkVisible"
         width="50%"
         :close-on-click-modal="false"

+ 17 - 2
src/views/book/courseware/preview/components/character/CharacterPreview.vue

@@ -414,7 +414,12 @@
         :task-model="isJudgingRightWrong ? 'ANSWER' : ''"
         @handleWav="handleWav"
       />
-      <PreviewOperation @showAnswerAnalysis="showAnswerAnalysis" @retry="retry" />
+      <PreviewOperation
+        v-if="data.property.model === 'miao'"
+        @showAnswerAnalysis="showAnswerAnalysis"
+        @retry="retry"
+        :isShowAnswer="isShowAnswers"
+      />
       <AnswerCorrect
         :answer-correct="data?.answer_correct"
         :visible.sync="visibleAnswerCorrect"
@@ -473,6 +478,7 @@ export default {
       miao_arr: [],
       if_miao_show: false, // 描红模块
       randomId: Math.random().toString(36).substring(2, 12),
+      isShowAnswers: false,
     };
   },
   computed: {},
@@ -495,7 +501,16 @@ export default {
       this.answer.record_list = val;
     },
   },
-  created() {},
+  created() {
+    if (
+      (this.data.answer_list && this.data.answer_list.length > 0) ||
+      (this.data.analysis_list && this.data.analysis_list.length > 0)
+    ) {
+      this.isShowAnswers = true;
+    } else {
+      this.isShowAnswers = false;
+    }
+  },
   methods: {
     handleWav(data) {
       this.data.record_list = data;

+ 1 - 1
src/views/book/courseware/preview/components/image_text/ImageTextPreview.vue

@@ -58,7 +58,7 @@
         />
       </div>
     </div>
-    <PreviewOperation @showAnswerAnalysis="showAnswerAnalysis" @retry="retry" />
+    <PreviewOperation v-if="data.input_list.length > 0" @showAnswerAnalysis="showAnswerAnalysis" @retry="retry" />
     <AnswerCorrect
       :answer-correct="data?.answer_correct"
       :visible.sync="visibleAnswerCorrect"

+ 19 - 1
src/views/book/courseware/preview/components/pinyin_base/PinyinBasePreview.vue

@@ -150,7 +150,15 @@
           />
         </template>
       </div>
-      <PreviewOperation @showAnswerAnalysis="showAnswerAnalysis" @retry="retry" />
+      <PreviewOperation
+        v-if="
+          data.property.fun_type !== 'show' ||
+          (data.property.fun_type === 'show' && isEnable(data.property.is_enable_voice_answer))
+        "
+        @showAnswerAnalysis="showAnswerAnalysis"
+        @retry="retry"
+        :isShowAnswer="isShowAnswers"
+      />
       <AnswerCorrect
         :answer-correct="data?.answer_correct"
         :visible.sync="visibleAnswerCorrect"
@@ -261,6 +269,7 @@ export default {
       active_letter: '', // 选中字母的值
       active_letter_index: 0, // 选择字母索引
       select_item_index: 0, // 小题索引
+      isShowAnswers: false,
     };
   },
   watch: {
@@ -286,6 +295,15 @@ export default {
   },
   created() {
     // console.log(this.data);
+    if (
+      data.property.fun_type !== 'show' ||
+      (data.property.fun_type === 'show' && this.data.answer_list && this.data.answer_list.length > 0) ||
+      (this.data.analysis_list && this.data.analysis_list.length > 0)
+    ) {
+      this.isShowAnswers = true;
+    } else {
+      this.isShowAnswers = false;
+    }
   },
   methods: {
     chooseTone(item, value) {