zhangjie 1 年之前
父节点
当前提交
52b1687ccb

+ 0 - 43
src/modules/stmms/components/markParam/MarkParamStructure.vue

@@ -140,49 +140,6 @@ export default {
         baseInfo
         baseInfo
       );
       );
     },
     },
-    getQuestionType(topic) {
-      // const questionType = {
-      //   1: "SINGLE_ANSWER_QUESTION",
-      //   2: "MULTIPLE_ANSWER_QUESTION",
-      //   3: "BOOL_ANSWER_QUESTION",
-      //   4: "FILL_BLANK_QUESTION",
-      //   5: "TEXT_ANSWER_QUESTION",
-      // };
-      if (topic.type === "COMPOSITION" || topic.type === "EXPLAIN") {
-        return {
-          type: 5,
-          typeName: "解答题",
-          qType: "subjective",
-        };
-      }
-      if (topic.type === "FILL_LINE") {
-        return {
-          type: 4,
-          typeName: "填空题",
-          qType: "subjective",
-        };
-      }
-      if (topic.type === "FILL_QUESTION") {
-        if (topic.isBoolean)
-          return {
-            type: 3,
-            typeName: "判断题",
-            qType: "objective",
-          };
-        if (topic.isMultiply)
-          return {
-            type: 2,
-            typeName: "多选题",
-            qType: "objective",
-          };
-        return {
-          type: 1,
-          typeName: "单选题",
-          qType: "objective",
-        };
-      }
-      return;
-    },
     statPaperStructure(paperStructureInfo) {
     statPaperStructure(paperStructureInfo) {
       const questionCount = paperStructureInfo.length;
       const questionCount = paperStructureInfo.length;
 
 

+ 43 - 0
src/modules/stmms/components/markParam/ModifyMarkParams.vue

@@ -262,6 +262,49 @@ export default {
       });
       });
       return structure;
       return structure;
     },
     },
+    getQuestionType(topic) {
+      // const questionType = {
+      //   1: "SINGLE_ANSWER_QUESTION",
+      //   2: "MULTIPLE_ANSWER_QUESTION",
+      //   3: "BOOL_ANSWER_QUESTION",
+      //   4: "FILL_BLANK_QUESTION",
+      //   5: "TEXT_ANSWER_QUESTION",
+      // };
+      if (topic.type === "COMPOSITION" || topic.type === "EXPLAIN") {
+        return {
+          type: 5,
+          typeName: "解答题",
+          qType: "subjective",
+        };
+      }
+      if (topic.type === "FILL_LINE") {
+        return {
+          type: 4,
+          typeName: "填空题",
+          qType: "subjective",
+        };
+      }
+      if (topic.type === "FILL_QUESTION") {
+        if (topic.isBoolean)
+          return {
+            type: 3,
+            typeName: "判断题",
+            qType: "objective",
+          };
+        if (topic.isMultiply)
+          return {
+            type: 2,
+            typeName: "多选题",
+            qType: "objective",
+          };
+        return {
+          type: 1,
+          typeName: "单选题",
+          qType: "objective",
+        };
+      }
+      return;
+    },
     selectMenu(val) {
     selectMenu(val) {
       this.curTab = val;
       this.curTab = val;
       this.current = this.tabs.findIndex((item) => item.val === val);
       this.current = this.tabs.findIndex((item) => item.val === val);