Jelajahi Sumber

modal - append to body

hare8999@163.com 2 tahun lalu
induk
melakukan
9139a7d74e

+ 1 - 1
src/components/MxPaper/mx-paper-mixin.js

@@ -238,7 +238,7 @@ export default {
       // 对比历史作答与现在提交内容是否有差异,防止切换时重复计时
       const rawQuestion = this.paper.questions.find(q => q.questionId == target.questionId)
       if (target.answer == rawQuestion.answer &&
-        target.attachments.toString() == rawQuestion.attachments.toString()) {
+        target.attachments?.toString() == rawQuestion.attachments?.toString()) {
         // 答题没有变化,不需要重复提交
         this.committingQuestions.shift()
         setTimeout(_ => this.commitQuestionCore(), 200)

+ 1 - 1
src/components/MxPaper/plus/correct-question-dialog.vue

@@ -1,5 +1,5 @@
 <template>
-  <el-dialog v-if="visible" ref="dialog" :visible.sync="visible" title="题目纠错">
+  <el-dialog v-if="visible" ref="dialog" :visible.sync="visible" title="题目纠错" append-to-body>
     <el-form ref="form" :model="model" :rules="rules" label-width="100px">
       <el-form-item label="题目编号" prop="questionid">{{model.questionid}}</el-form-item>
       <el-form-item label="错误描述" prop="remark">

+ 1 - 1
src/components/MxPaper/plus/plus-paper-help.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
     <i class="el-icon-question pointer" @click="handleHelpOpen"></i>
-    <el-dialog :visible.sync="helpVisible" :modal-append-to-body="true" width="500px">
+    <el-dialog :visible.sync="helpVisible" append-to-body width="500px">
       <div class="fx-column">
         <div class="f12 f-999"><i class="el-icon-magic-stick mr5"></i>小提示</div>
         <div class="fx-column fx-cen-base mt30 pl60">

+ 1 - 1
src/views/questioncenter/homework.vue

@@ -27,7 +27,7 @@
         <mx-video :src="videoOption.src" :ali-id-type="videoOption.aliIdType"></mx-video>
       </el-dialog>
       <el-drawer v-if="paperOption.dialogVisible" :visible.sync="paperOption.dialogVisible" :title="paperOption.title"
-                 :close-on-click-modal="false" append-to-body size="100%" @close="handlePaperClose">
+                 :close-on-click-modal="false" size="100%" @close="handlePaperClose">
         <div class="pl30 pr30">
           <homework-paper :params="paperOption.params"></homework-paper>
         </div>