zhangjie 2 anni fa
parent
commit
e61d9aeb2a

+ 21 - 2
src/assets/styles/pages.scss

@@ -1370,7 +1370,7 @@
   }
 
   &-subq {
-    padding: 0 15px;
+    padding: 20px 15px 0;
   }
 
   &-title {
@@ -1382,9 +1382,13 @@
       display: block;
       float: left;
       width: 24px;
+
+      & + .rich-text {
+        margin-left: 24px;
+      }
     }
     .rich-text {
-      margin-left: 24px;
+      margin-left: 0;
       display: block;
     }
   }
@@ -1440,4 +1444,19 @@
       min-height: 70px;
     }
   }
+
+  // question
+  .banked-cloze-question {
+    .ep-question-option {
+      &-check {
+        width: 20px;
+      }
+      .rich-text {
+        margin-left: 20px;
+      }
+    }
+    .el-form-item {
+      margin-bottom: 5px;
+    }
+  }
 }

+ 3 - 3
src/modules/question/components/import-edit/BankedClozeQuestion.vue

@@ -16,7 +16,7 @@
       </div>
     </div>
 
-    <el-form ref="modalFormComp" :model="modalForm" label-width="72px">
+    <el-form ref="modalFormComp" label-width="72px">
       <el-form-item label="答题模式">
         <el-select v-model="matchingMode">
           <el-option
@@ -33,7 +33,7 @@
     <div
       v-for="subq in question.subQuestions"
       :key="subq.id"
-      class="op-question-subq"
+      class="ep-question-subq"
     >
       <match-question
         ref="MatchQuestion"
@@ -70,7 +70,7 @@ export default {
   },
   computed: {
     IS_BANKED_CLOZE() {
-      return this.modalForm.questionType === "BANKED_CLOZE";
+      return this.question.questionType === "BANKED_CLOZE";
     },
   },
   created() {},

+ 1 - 4
src/modules/question/components/import-edit/NestedQuestion.vue

@@ -6,7 +6,7 @@
     <div
       v-for="subq in question.subQuestions"
       :key="subq.id"
-      class="op-question-subq"
+      class="ep-question-subq"
     >
       <component
         :is="getStructTypeComp(subq.questionType)"
@@ -56,9 +56,6 @@ export default {
       return this.question.questionType === "LISTENING_QUESTION";
     },
   },
-  created() {
-    this.initData();
-  },
   methods: {
     getStructTypeComp(questionType) {
       return STRUCT_TYPE_COMP_DICT[questionType];

+ 1 - 5
vue.config.js

@@ -27,11 +27,7 @@ module.exports = {
       // new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
     ],
   },
-  transpileDependencies: [
-    /\bvue-awesome\b/,
-    /\bvue-echarts\/components\b/,
-    /\bresize-detector\b/,
-  ],
+  transpileDependencies: [/\bvue-awesome\b/],
 };
 
 require("events").EventEmitter.defaultMaxListeners = 0;