Browse Source

拼音预览调整

natasha 1 month ago
parent
commit
26c1514f4a

+ 9 - 0
src/views/book/courseware/create/components/base/pinyin_base/PinyinBase.vue

@@ -23,6 +23,9 @@
             style="width: 200px"
           />
         </div>
+        <span class="tips" v-if="data.property.fun_type === 'input'"
+          >在需要加空的内容处插入 3 个或以上的下划线“_”。</span
+        >
         <div v-if="data.audio_file_id">
           <SoundRecord :wav-blob.sync="data.audio_file_id" />
         </div>
@@ -87,6 +90,12 @@ export default {
       },
       deep: true,
     },
+    'data.property.fun_type': {
+      handler(val) {
+        this.handleChangeType();
+      },
+      deep: true,
+    },
   },
   data() {
     return {

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

@@ -282,6 +282,8 @@ export default {
             con: item,
             type: 'text',
           };
+
+          this.con_preview.push(obj);
           if (index !== arr.length - 1) {
             let objs = {
               con: '',
@@ -289,7 +291,6 @@ export default {
               inputIndex: inputIndex,
               answer: this.data.answer.answer_list[inputIndex] ? this.data.answer.answer_list[inputIndex].con : '',
             };
-            this.con_preview.push(obj);
             this.con_preview.push(JSON.parse(JSON.stringify(objs)));
             inputIndex++;
           }

+ 0 - 1
src/views/book/courseware/preview/components/upload_preview/UploadPreviewPreview.vue

@@ -141,7 +141,6 @@ export default {
         //   'newpath',
         //   `${this.file_preview_url}onlinePreview?url=${Base64.encode(url_map[item.file_id])}`,
         // );
-        console.log(url_map[file.file_id]);
         this.newpath = `${this.file_preview_url}onlinePreview?url=${Base64.encode(url_map[file.file_id])}`;
         this.visible = true;
       });