소스 검색

Merge branch 'master' of http://60.205.254.193:3000/GCLS/eep_page

dsy 1 개월 전
부모
커밋
d466f5c921

+ 3 - 1
src/views/book/courseware/create/components/base/common/UploadFile.vue

@@ -482,7 +482,9 @@ export default {
         file_id: file.file_id,
       };
       SubmitFileToResourceStore(data)
-        .then((res) => {})
+        .then((res) => {
+          this.$message.success('操作成功!');
+        })
         .catch(() => {
           this.loading = false;
         });

+ 1 - 1
src/views/book/courseware/create/components/question/character/Character.vue

@@ -344,7 +344,7 @@ export default {
   }
 
   .upload-file {
-    display: flex;
+    // display: flex;
     column-gap: 12px;
     align-items: center;
     margin: 8px 0;

+ 1 - 1
src/views/book/courseware/create/components/question/newWord_template/NewWordTemplate.vue

@@ -328,7 +328,7 @@ export default {
 </script>
 <style lang="scss" scoped>
 .upload-file {
-  display: flex;
+  // display: flex;
   column-gap: 12px;
   align-items: center;
   margin: 8px 0;

+ 12 - 1
src/views/book/courseware/preview/components/table/TablePreview.vue

@@ -222,7 +222,7 @@
           </tr>
         </table>
       </div>
-      <PreviewOperation @showAnswerAnalysis="showAnswerAnalysis" @retry="retry" />
+      <PreviewOperation @showAnswerAnalysis="showAnswerAnalysis" @retry="retry" v-if="isHasInput" />
       <AnswerCorrect
         :answer-correct="data?.answer_correct"
         :visible.sync="visibleAnswerCorrect"
@@ -505,6 +505,7 @@ export default {
       selectedWordList: [], // 用于存储选中的词汇
       writeVisible: false,
       writeMark: '',
+      isHasInput: false,
     };
   },
   computed: {
@@ -556,6 +557,7 @@ export default {
   methods: {
     handleData() {
       this.table_width = 0;
+      this.isHasInput = false;
       this.data.col_width.forEach((item) => {
         this.table_width += Number(item.value);
       });
@@ -576,6 +578,15 @@ export default {
       if (!this.isJudgingRightWrong) {
         this.answer.answer_list = this.data.answer_lists;
       }
+      this.data.option_list.forEach((item) => {
+        item.forEach((items) => {
+          items.model_essay.forEach((li) => {
+            if (li.type === 'input') {
+              this.isHasInput = true;
+            }
+          });
+        });
+      });
     },
     computedAnswerText(item, i, j) {
       if (!this.isShowRightAnswer) return '';