瀏覽代碼

对话填空 类型

natasha 2 年之前
父節點
當前提交
16744d19de

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

@@ -1005,7 +1005,7 @@ export default {
   },
   // 生命周期 - 创建完成(可以访问当前this实例)
   created() {
-    console.log("2023-01-03");
+    console.log("2023-02-10");
   },
   // 生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {

+ 1 - 1
src/components/Adult/inputModules/DialogueAnswerChs/index.vue

@@ -76,7 +76,7 @@
       width="80%"
       top="10px"
     >
-      <DialogueTem :curQue="curQue.list[listIndex]" :listIndex="listIndex" :type="curQue.type" />
+      <DialogueTem v-if="dialogVisible" :curQue="curQue.list[listIndex]" :listIndex="listIndex" :type="curQue.type" />
       <span slot="footer" class="dialog-footer">
         <el-button @click="cancleDialogue">取 消</el-button>
         <el-button type="primary" @click="cancleDialogue">确 定</el-button>

+ 4 - 2
src/components/Adult/inputModules/DialogueTem/index.vue

@@ -619,9 +619,10 @@ export default {
       this.cTVisible = true;
     },
     initData() {
-      console.log(this.curQue);
       if (this.curQue) {
-        this.segList = this.curQue.detail[this.paraIndex].segList;
+        if(this.curQue.detail&&this.curQue.detail[this.paraIndex]&&this.curQue.detail[this.paraIndex].segList){
+            this.segList = this.curQue.detail[this.paraIndex].segList;
+        }
         if (!this.curQue.number) {
           this.curQue.number = "";
         }
@@ -648,6 +649,7 @@ export default {
         this.fileCon.mp3_list = JSON.parse(
           JSON.stringify(this.curQue.mp3_list)
         );
+
       }
     },
   },

+ 3 - 3
src/components/Adult/preview/DialogueArticleViewChs/AnswerModel.vue

@@ -726,12 +726,12 @@ export default {
     },
     hengStyle() {
       return function (config) {
-        let sizeVal = config.fontSize.replace("px", "");
+        let sizeVal = config ? config.fontSize.replace("px", "") : 20;
         return {
           minHeight: Number(sizeVal) + 9 + "px",
           lineHeight: Number(sizeVal) + 8 + "px",
-          fontSize: config.fontSize,
-          fontFamily: config.fontFamily
+          fontSize: config ? config.fontSize : '20px',
+          fontFamily: config ? config.fontFamily : 'FZJCGFKTK'
         };
       };
     },