gcj 2 лет назад
Родитель
Сommit
7299ec31b0

+ 1 - 1
src/components/Adult/Preview.vue

@@ -1078,7 +1078,7 @@ export default {
           item.showSubmit = false;
           item.table_list.forEach((items, indexs) => {
             items.forEach((itemss, indexss) => {
-              if (itemss.data && itemss.data.type) {
+              if (itemss.data && itemss.type) {
                 if (
                   this.previewType &&
                   this.previewType == "previewCheckShow" &&

+ 4 - 5
src/components/Adult/common/HzModule.vue

@@ -28,7 +28,7 @@
           ></el-input>
           <div v-if="checkList.indexOf('image_single') > -1">
             <el-radio
-              @change="changeIsAnswer('single',i)"
+              @change="changeIsAnswer('single', i)"
               v-model="item.isAnswer"
               :label="i"
               >答案</el-radio
@@ -36,7 +36,7 @@
           </div>
           <div v-if="checkList.indexOf('image_checkBox') > -1">
             <el-checkbox
-              @change="changeIsAnswer('checkBox',i)"
+              @change="changeIsAnswer('checkBox', i)"
               v-model="item.isChecked"
               :label="i"
               >答案</el-checkbox
@@ -298,8 +298,8 @@ export default {
       }
     },
     //   修改正确答案
-    changeIsAnswer(type,i) {
-      this.changAnswer(this.index, type,i);
+    changeIsAnswer(type, i) {
+      this.changAnswer(this.index, type, i);
     },
     // 点击生成拼音
     getPinyin(item) {
@@ -368,7 +368,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log(this.curQueItem);
     if (this.curQueItem) {
       this.fileCon.img_list = this.curQueItem.img_list;
       this.fileCon.mp3_list = this.curQueItem.mp3_list;

+ 4 - 6
src/components/Adult/common/ImageQuestionModule.vue

@@ -170,21 +170,19 @@ export default {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning",
-      })
-        .then(() => {
+      }).then(() => {
         if (this.curQueItem.answer.length <= 1) {
-            this.$message.warning("至少要保留一个");
-            return;
+          this.$message.warning("至少要保留一个");
+          return;
         }
         this.curQueItem.answer.splice(ansIndex, 1);
-      })
+      });
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log(this.curQueItem);
     if (this.curQueItem) {
       this.fileCon.img_list = this.curQueItem.img_list;
       this.fileCon.mp3_list = this.curQueItem.mp3_list;

+ 0 - 1
src/components/Adult/common/SentenceModule.vue

@@ -283,7 +283,6 @@ export default {
         this.$message.warning("请先填写完整");
         return;
       }
-      console.log(this.curQueItem);
       this.curQueItem.answer.push("");
     },
     delAnswer(ansIndex) {

+ 27 - 23
src/components/Adult/inputModules/ToneSelect.vue

@@ -75,11 +75,19 @@
         <div class="adult-book-input-item">
           <span class="adult-book-lable"></span>
           <span v-if="curQue.wordTime.length > 0" class="lrc">
-            <el-input v-model="curQue.wordTime[index].bg" size="small" maxlength="200"
-          show-word-limit />
+            <el-input
+              v-model="curQue.wordTime[index].bg"
+              size="small"
+              maxlength="200"
+              show-word-limit
+            />
             <span> ~ </span>
-            <el-input v-model="curQue.wordTime[index].ed" size="small" maxlength="200"
-          show-word-limit />
+            <el-input
+              v-model="curQue.wordTime[index].ed"
+              size="small"
+              maxlength="200"
+              show-word-limit
+            />
             {{ curQue.wordTime[index].text }}
           </span>
         </div>
@@ -172,11 +180,8 @@ import "tinymce/plugins/preview";
 import "tinymce/plugins/contextmenu";
 import "tinymce/plugins/textcolor";
 import "tinymce/plugins/colorpicker";
-import {
-  prepareTranscribe,
-  getWordTime,
-  getContentFile,
-} from "@/api/ajax";
+import "tinymce/plugins/preview";
+import { prepareTranscribe, getWordTime, getContentFile } from "@/api/ajax";
 export default {
   name: "ToneSelect",
   props: ["curQue", "changeCurQue"],
@@ -236,8 +241,8 @@ export default {
         height: 150,
         width: 500,
         plugins:
-          "link lists image code table colorpicker textcolor wordcount contextmenu",
-        toolbar: " forecolor",
+          "link lists image code table colorpicker textcolor wordcount contextmenu preview",
+        toolbar: " forecolor | code",
         branding: false,
       }, //富文本初始化
       isWordTime: false,
@@ -367,18 +372,17 @@ export default {
       });
     },
     deleteGroup(index) {
-        this.$confirm("确定要删除吗?", "提示", {
-            confirmButtonText: "确定",
-            cancelButtonText: "取消",
-            type: "warning",
-        })
-        .then(() => {
-            if (this.curQue.option.length == 1) {
-                this.$message.warning("至少剩余1个,不能全部删除");
-                return;
-            }
-            this.curQue.option.splice(index, 1);
-        })
+      this.$confirm("确定要删除吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      }).then(() => {
+        if (this.curQue.option.length == 1) {
+          this.$message.warning("至少剩余1个,不能全部删除");
+          return;
+        }
+        this.curQue.option.splice(index, 1);
+      });
     },
     // 上传音频文件
     handleChange(file, fileList) {

+ 12 - 3
src/components/Adult/preview/Picture.vue

@@ -323,7 +323,11 @@
         </template>
         <Soundrecord
           @handleWav="handleWav"
-          :answerRecordList="curQue.Bookanswer[0].recordList"
+          :answerRecordList="
+            judgeAnswer != 'standardAnswer'
+              ? curQue.Bookanswer[0].recordList
+              : []
+          "
           :TaskModel="TaskModel"
           :type="items.RecordControl ? items.RecordControl : 'normal'"
           class="luyin-box"
@@ -522,8 +526,13 @@ export default {
       _this.userErrorNumberTotal = 0;
       if (!_this.curQue.Bookanswer) {
         _this.curQue.correct.forEach((item, index) => {
-          //单输入
-          if (_this.ChildType == "image_input") {
+          //单输入/补全输入
+          if (
+            _this.ChildType == "image_input" ||
+            _this.ChildType == "image_gdcy" ||
+            _this.ChildType == "image_input_three" ||
+            _this.ChildType == "image_wordInput"
+          ) {
             let obj = {
               input: [
                 {

+ 14 - 0
src/components/Adult/preview/SelectTone.vue

@@ -311,6 +311,9 @@ export default {
         line-height: 1.5;
         flex: 1;
         margin: 0;
+        .pinyin {
+          font-family: "Sans-GBNPC";
+        }
       }
       a {
         margin-left: 8px;
@@ -380,8 +383,19 @@ export default {
     li {
       div.con {
         margin: 0;
+
         > p {
           margin: 0;
+          font-family: "Sans-GBNPC";
+          .pinyin {
+            font-family: "Sans-GBNPC";
+          }
+          .chs {
+            font-family: "FZJCGFKTK";
+          }
+          .en {
+            font-family: "robot";
+          }
         }
       }
     }