xiatian %!s(int64=3) %!d(string=hai) anos
pai
achega
c7166c7de1

+ 4 - 1
src/modules/questions/views/CheckDuplicateInfo.vue

@@ -18,7 +18,10 @@
         <QuestionInfo :question="curQuestion"></QuestionInfo>
         <QuestionInfo :question="curQuestion"></QuestionInfo>
       </div>
       </div>
       <div style="width: 49%">
       <div style="width: 49%">
-        <QuestionInfo :question="duplicateQuestion"></QuestionInfo>
+        <QuestionInfo
+          :question="duplicateQuestion"
+          info-type="right"
+        ></QuestionInfo>
       </div>
       </div>
     </div>
     </div>
     <div
     <div

+ 24 - 5
src/modules/questions/views/Question.vue

@@ -204,11 +204,7 @@
           <template slot-scope="scope">
           <template slot-scope="scope">
             <div class="operate_left">
             <div class="operate_left">
               <el-button
               <el-button
-                v-if="
-                  scope.row.questionType !== 'NESTED_ANSWER_QUESTION' &&
-                  scope.row.questionType !== 'LISTENING_QUESTION' &&
-                  scope.row.questionType !== 'MATCHING_QUESTION'
-                "
+                v-if="!isNested(scope.row.questionType)"
                 size="mini"
                 size="mini"
                 type="primary"
                 type="primary"
                 plain
                 plain
@@ -443,6 +439,29 @@ export default {
     this.initVue();
     this.initVue();
   },
   },
   methods: {
   methods: {
+    isMatchingQuestion(questionType) {
+      if (
+        questionType == "PARAGRAPH_MATCHING" ||
+        questionType == "BANKED_CLOZE"
+      ) {
+        return true;
+      } else {
+        return false;
+      }
+    },
+    isNested(questionType) {
+      if (
+        questionType == "PARAGRAPH_MATCHING" ||
+        questionType == "BANKED_CLOZE" ||
+        questionType == "CLOZE" ||
+        questionType == "READING_COMPREHENSION" ||
+        questionType == "LISTENING_QUESTION"
+      ) {
+        return true;
+      } else {
+        return false;
+      }
+    },
     resetForm() {
     resetForm() {
       this.formSearch = {
       this.formSearch = {
         questionType: "",
         questionType: "",

+ 12 - 3
src/modules/questions/views/QuestionInfo.vue

@@ -57,9 +57,14 @@
                 <span>{{ quesModel.cv || "-" }}</span>
                 <span>{{ quesModel.cv || "-" }}</span>
               </el-form-item>
               </el-form-item>
             </div>
             </div>
-            <el-form-item label="平均分值">
-              <span>{{ quesModel.calculateAvgScore || "-" }}</span>
-            </el-form-item>
+            <div style="display: flex; justify-content: space-between">
+              <el-form-item label="平均分值">
+                <span>{{ quesModel.calculateAvgScore || "-" }}</span>
+              </el-form-item>
+              <el-form-item v-if="infoType == 'right'" label="重复率">
+                <span>{{ quesModel.duplicateRate || "-" }}</span>
+              </el-form-item>
+            </div>
           </div>
           </div>
 
 
           <div style="width: 35%">
           <div style="width: 35%">
@@ -108,6 +113,10 @@ export default {
       type: Object,
       type: Object,
       default: () => {},
       default: () => {},
     },
     },
+    infoType: {
+      type: String,
+      default: "",
+    },
   },
   },
   data() {
   data() {
     return { quesModel: this.question };
     return { quesModel: this.question };