zhangjie 2 年 前
コミット
3a35516540

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

@@ -1296,7 +1296,7 @@
 
 // ep-detail
 .ep-detail {
-  padding: 20px 0;
+  padding: 20px 10px;
   color: #313444;
   line-height: 20px;
 
@@ -1364,6 +1364,7 @@
     background: #f4f6fc;
     border-radius: 8px;
     padding: 20px;
+    margin-top: 10px;
 
     .el-form-item {
       margin-bottom: 4px;

+ 0 - 2
src/components/selection/PropertySelect.vue

@@ -1,9 +1,7 @@
 <template>
   <el-select
     v-model="selected"
-    remote
     filterable
-    :remote-method="search"
     :loading="loading"
     :clearable="clearable"
     :disabled="disabled"

+ 1 - 1
src/modules/question/components/QuestionEditDialog.vue

@@ -83,7 +83,7 @@
 
 <script>
 import { QUESTION_TYPES } from "@/constants/constants";
-import { STRUCT_TYPE_COMP_DICT } from "./model/questionModel";
+import { STRUCT_TYPE_COMP_DICT } from "./edit/questionModel";
 import BooleanQuestion from "./edit/BooleanQuestion.vue";
 import FillBlankQuestion from "./edit/FillBlankQuestion.vue";
 import SelectQuestion from "./edit/SelectQuestion.vue";

+ 15 - 1
src/modules/question/components/QuestionImportEdit.vue

@@ -229,6 +229,20 @@ export default {
       });
       return paperData;
     },
+    getImportPaperData() {
+      const paperData = this.$refs.QuestionImportPaperEdit.getData();
+      const transformFieldMap = { body: "quesBody", options: "quesOptions" };
+      const fields = Object.keys(transformFieldMap);
+      paperData.forEach((detail) => {
+        detail.questions.forEach((question) => {
+          fields.forEach((field) => {
+            question[transformFieldMap[field]] = question[field];
+            delete question[field];
+          });
+        });
+      });
+      return paperData;
+    },
     async confirm() {
       const confirm = await this.$confirm("确认加入题库吗?", "提示", {
         type: "warning",
@@ -238,7 +252,7 @@ export default {
       if (this.loading) return;
       this.loading = true;
 
-      const paperData = this.$refs.QuestionImportPaperEdit.getData();
+      const paperData = this.getImportPaperData();
       console.log(paperData);
 
       const res = await questionImportPaperSave({

+ 5 - 5
src/modules/question/components/QuestionImportPaperEdit.vue

@@ -18,7 +18,7 @@
           </div>
           <component
             :is="structTypeComp(question.questionType)"
-            :ref="`QuestionEditDetail${detail.number}-${question.number}`"
+            :ref="`QuestionEditDetail${dIndex}-${question.number}`"
             :question="question"
           ></component>
         </div>
@@ -36,7 +36,7 @@ import SelectQuestion from "./import-edit/SelectQuestion.vue";
 import TextAnswerQuestion from "./import-edit/TextAnswerQuestion.vue";
 import NestedQuestion from "./import-edit/NestedQuestion.vue";
 import BankedClozeQuestion from "./import-edit/BankedClozeQuestion.vue";
-import { STRUCT_TYPE_COMP_DICT } from "./model/questionModel";
+import { STRUCT_TYPE_COMP_DICT } from "./edit/questionModel";
 
 export default {
   name: "QuestionExportPaperEdit",
@@ -84,10 +84,10 @@ export default {
     },
     checkData() {},
     getData() {
-      this.paperData.forEach((detail) => {
+      this.paperData.forEach((detail, dIndex) => {
         detail.questions.forEach((question) => {
-          const refName = `QuestionEditDetail${detail.number}-${question.number}`;
-          const questionData = this.$refs[refName].getData();
+          const refName = `QuestionEditDetail${dIndex}-${question.number}`;
+          const questionData = this.$refs[refName][0].getData();
           Object.assign(question, questionData);
         });
       });

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

@@ -107,10 +107,7 @@
 <script>
 import { isAnEmptyRichText } from "@/utils/utils";
 import { randomCode } from "@/plugins/utils";
-import {
-  getInitQuestionModel,
-  getMatchQuestionModel,
-} from "../model/questionModel";
+import { getInitQuestionModel, getMatchQuestionModel } from "./questionModel";
 import MatchQuestion from "./MatchQuestion.vue";
 
 export default {

+ 1 - 1
src/modules/question/components/edit/BooleanQuestion.vue

@@ -40,7 +40,7 @@
 
 <script>
 import { isAnEmptyRichText } from "@/utils/utils";
-import { getInitQuestionModel } from "../model/questionModel";
+import { getInitQuestionModel } from "./questionModel";
 import QuestionInfoEdit from "../QuestionInfoEdit.vue";
 
 export default {

+ 1 - 1
src/modules/question/components/edit/FillBlankQuestion.vue

@@ -49,7 +49,7 @@
 
 <script>
 import { isAnEmptyRichText } from "@/utils/utils";
-import { getInitQuestionModel } from "../model/questionModel";
+import { getInitQuestionModel } from "./questionModel";
 import QuestionInfoEdit from "../QuestionInfoEdit.vue";
 
 export default {

+ 1 - 1
src/modules/question/components/edit/MatchQuestion.vue

@@ -41,7 +41,7 @@
 <script>
 import { isAnEmptyRichText } from "@/utils/utils";
 import QuestionInfoEdit from "../QuestionInfoEdit.vue";
-import { getMatchQuestionModel } from "../model/questionModel";
+import { getMatchQuestionModel } from "./questionModel";
 
 export default {
   name: "MatchQuestion",

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

@@ -91,10 +91,7 @@
 <script>
 import { isAnEmptyRichText } from "@/utils/utils";
 import { randomCode } from "@/plugins/utils";
-import {
-  getInitQuestionModel,
-  STRUCT_TYPE_COMP_DICT,
-} from "../model/questionModel";
+import { getInitQuestionModel, STRUCT_TYPE_COMP_DICT } from "./questionModel";
 import BooleanQuestion from "./BooleanQuestion.vue";
 import FillBlankQuestion from "./FillBlankQuestion.vue";
 import SelectQuestion from "./SelectQuestion.vue";

+ 1 - 1
src/modules/question/components/edit/SelectQuestion.vue

@@ -110,7 +110,7 @@
 
 <script>
 import { isAnEmptyRichText } from "@/utils/utils";
-import { getInitQuestionModel } from "../model/questionModel";
+import { getInitQuestionModel } from "./questionModel";
 import QuestionInfoEdit from "../QuestionInfoEdit.vue";
 
 export default {

+ 1 - 1
src/modules/question/components/edit/TextAnswerQuestion.vue

@@ -36,7 +36,7 @@
 
 <script>
 import { isAnEmptyRichText } from "@/utils/utils";
-import { getInitQuestionModel } from "../model/questionModel";
+import { getInitQuestionModel } from "./questionModel";
 import QuestionInfoEdit from "../QuestionInfoEdit.vue";
 
 export default {

+ 0 - 0
src/modules/question/components/model/questionModel.js → src/modules/question/components/edit/questionModel.js


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

@@ -5,12 +5,7 @@
       <rich-text :text-json="question.body"></rich-text>
     </div>
     <div class="ep-question-props">
-      <el-form
-        ref="modalFormComp"
-        :model="modalForm"
-        :rules="rules"
-        label-width="72px"
-      >
+      <el-form ref="modalFormComp" :model="modalForm" label-width="72px">
         <el-form-item prop="quesAnswer" label="答案">
           <el-radio-group v-model="modalForm.quesAnswer" @change="answerChange">
             <el-radio
@@ -67,15 +62,6 @@ export default {
           label: "正确",
         },
       ],
-      rules: {
-        quesAnswer: [
-          {
-            required: true,
-            message: "请设置答案",
-            trigger: "change",
-          },
-        ],
-      },
     };
   },
   created() {
@@ -84,6 +70,8 @@ export default {
   methods: {
     initData() {
       this.modalForm = this.$objAssign(getInitQuestionModel(), this.question);
+      this.modalForm.quesAnswer =
+        this.modalForm.quesAnswer === "true" ? "true" : "false";
     },
     answerChange() {
       this.$refs.modalFormComp.validateField(`answer`, () => {});

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

@@ -10,15 +10,12 @@
         <el-form-item
           v-for="(answer, oindex) in modalForm.quesAnswer"
           :key="oindex"
+          label-width="12px"
         >
           <div class="question-edit-option">
             <div class="option-check">({{ oindex + 1 }})</div>
             <div class="option-body">
-              <v-editor
-                v-model="answer.body"
-                :enable-audio="false"
-                @change="() => answerBodyChange(oindex)"
-              ></v-editor>
+              <v-editor v-model="answer.body" :enable-audio="false"></v-editor>
             </div>
           </div>
         </el-form-item>
@@ -40,7 +37,7 @@
 </template>
 
 <script>
-import { getInitQuestionModel } from "../model/questionModel";
+import { getInitQuestionModel } from "./model";
 import QuestionInfoEdit from "../QuestionInfoEdit.vue";
 
 export default {

+ 2 - 2
src/modules/question/components/import-edit/MatchQuestion.vue

@@ -41,7 +41,7 @@
 
 <script>
 import QuestionInfoEdit from "../QuestionInfoEdit.vue";
-import { getMatchQuestionModel } from "../model/questionModel";
+import { getInitQuestionModel } from "./model";
 
 export default {
   name: "MatchQuestion",
@@ -92,7 +92,7 @@ export default {
   },
   methods: {
     initData() {
-      this.modalForm = this.$objAssign(getMatchQuestionModel(), this.question);
+      this.modalForm = this.$objAssign(getInitQuestionModel(), this.question);
       this.modalForm.courseId = this.parentQuestion.courseId;
       this.modalForm.quesAnswer = [];
       this.quesAnswer = this.modalForm.quesAnswer[0] || null;

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

@@ -25,7 +25,7 @@
 </template>
 
 <script>
-import { STRUCT_TYPE_COMP_DICT } from "../model/questionModel";
+import { STRUCT_TYPE_COMP_DICT } from "../edit/questionModel";
 import BooleanQuestion from "./BooleanQuestion.vue";
 import FillBlankQuestion from "./FillBlankQuestion.vue";
 import SelectQuestion from "./SelectQuestion.vue";

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

@@ -31,7 +31,7 @@
 </template>
 
 <script>
-import { getInitQuestionModel } from "../model/questionModel";
+import { getInitQuestionModel } from "./model";
 import QuestionInfoEdit from "../QuestionInfoEdit.vue";
 
 export default {

+ 1 - 0
src/modules/question/components/import-edit/model.js

@@ -9,6 +9,7 @@ export const getInitQuestionModel = () => {
     score: 0,
     publicity: true,
     control: { maxAnswerTime: 0 },
+    answerAnalysis: null,
     quesAnswer: null,
   };
 };

+ 0 - 2026
src/modules/question/datas/lin.json

@@ -1,2026 +0,0 @@
-[
-  {
-    "number": 1,
-    "name": "A型题",
-    "questions": [
-      {
-        "number": 1,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "已知核糖核酸酶分子由一条多肽链组成,那么它的最高级结构是:",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [
-          {
-            "number": 1,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "一级结构    ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 2,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "二级结构   ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 3,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "三级结构   ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 4,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "四级结构",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          }
-        ],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      },
-      {
-        "number": 2,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "Tm是指DNA双链解开多少时的环境温度?",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [
-          {
-            "number": 1,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "20%    ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 2,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "30%    ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 3,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "50%    ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 4,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "80%",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          }
-        ],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      },
-      {
-        "number": 3,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "LDH是由2条不同多肽链组成的四聚体,请问该酶有几种同工酶?",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [
-          {
-            "number": 1,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "2种   ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 2,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "3种   ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 3,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "4种   ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 4,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "5种",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          }
-        ],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      },
-      {
-        "number": 4,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "糖在体内的储存形式是",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [
-          {
-            "number": 1,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "葡萄糖   ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 2,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "核糖  ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 3,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "磷酸丙糖   ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 4,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "糖原 ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          }
-        ],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      },
-      {
-        "number": 5,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "体内CO2来自:",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [
-          {
-            "number": 1,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "碳原子被氧原子氧 ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 2,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "呼吸链的氧化还原过程 ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 3,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "有机酸的脱羧 ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 4,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "糖原的分解",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          }
-        ],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      },
-      {
-        "number": 6,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "治疗痛风症有效的别嘌呤醇可抑制:",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [
-          {
-            "number": 1,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "黄嘌呤氧化酶  ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 2,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "腺苷脱氨酶   ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 3,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "尿酸氧化酶   ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 4,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "鸟嘌呤脱氨酶",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          }
-        ],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      },
-      {
-        "number": 7,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "DNA复制过程中,不需要下列哪一种酶?",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [
-          {
-            "number": 1,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "引物酶    ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 2,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "解旋酶    ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 3,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "核酶   ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 4,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "DNA聚合酶",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          }
-        ],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      },
-      {
-        "number": 8,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "DNA上某段碱基顺序为5'-ACTAGTCAG-3',转录后的mRNA上相应的碱基顺序为:",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [
-          {
-            "number": 1,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "5'-TGATCAGTC-3'      ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 2,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "5'-UGAUCAGUC-3' ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 3,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "5'-CUGACUAGU-3'     ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 4,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "5'-CTAGACTAG-3'",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          }
-        ],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      },
-      {
-        "number": 9,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "作为蛋白质生物合成的模板是哪个物质?",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [
-          {
-            "number": 1,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "DNA    ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 2,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "tRNA    ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 3,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "rRNA    ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 4,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "mRNA ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          }
-        ],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      },
-      {
-        "number": 10,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "不属于胆色素的物质:",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [
-          {
-            "number": 1,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "胆红素    ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 2,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "血红素    ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 3,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "胆绿素    ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 4,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "胆素原",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          }
-        ],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      }
-    ]
-  },
-  {
-    "number": 2,
-    "name": "B型题",
-    "questions": [
-      {
-        "number": 11,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "苹果酸脱氢酶的辅酶是:",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      },
-      {
-        "number": 12,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "6-磷酸葡萄糖脱氢酶的辅酶是:",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [
-          {
-            "number": 1,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "琥珀酰CoA→琥珀酸    ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 2,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "α-酮戊二酸→琥珀酰CoA",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 3,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "琥珀酸→延胡索酸       ",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          },
-          {
-            "number": 4,
-            "body": {
-              "sections": [
-                {
-                  "blocks": [
-                    {
-                      "type": "text",
-                      "value": "草酰乙酸+乙酰辅酶A→柠檬酸",
-                      "param": {}
-                    }
-                  ]
-                }
-              ]
-            }
-          }
-        ],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      },
-      {
-        "number": 13,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "三羧酸循环中第一步反应是:",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      },
-      {
-        "number": 14,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "上述哪个反应以FAD为受氢体?",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      },
-      {
-        "number": 15,
-        "type": 1,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "催化上述哪个反应的酶是多酶复合体?",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 1
-      }
-    ]
-  },
-  {
-    "number": 3,
-    "name": "X型题",
-    "questions": [
-      {
-        "number": 16,
-        "type": 2,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "蛋白质的二级结构包括:",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "A、α-螺旋   B、β-折叠   C、β-转角   D、不规则卷曲",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 2
-      },
-      {
-        "number": 17,
-        "type": 2,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "关于三羧酸循环的叙述正确的是:",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "A、循环一周有2次底物水平磷酸化    B、循环一周可产生10个ATP",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "C、三羧酸循环过程是可逆的          D、循环一周可产生2个CO2",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 2
-      },
-      {
-        "number": 18,
-        "type": 2,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "胆固醇在体内除构成膜的组分外的主要代谢去路包括:",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "A、转变为胆汁酸           B、转变为VD3    ",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "C、转变为类固醇激素       D、转变为胆红素 ",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 2
-      },
-      {
-        "number": 19,
-        "type": 2,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "生成一碳单位的氨基酸有:",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "A、甘氨酸   B、丝氨酸   C、组氨酸   D、色氨酸",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 2
-      },
-      {
-        "number": 20,
-        "type": 2,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "关于DNA复制的说法正确的是:",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "A、它是半保留复制        B、它是半不连续复制   ",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "C、复制有特定的起始位点  D、是双向复制",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": []
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 2
-      }
-    ]
-  },
-  {
-    "number": 2,
-    "name": "填空题(每空2分,共20分)",
-    "questions": [
-      {
-        "number": 1,
-        "type": 4,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "cloze",
-                  "value": 1
-                },
-                {
-                  "type": "cloze",
-                  "value": 2
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 4
-      },
-      {
-        "number": 2,
-        "type": 4,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "cloze",
-                  "value": 1
-                },
-                {
-                  "type": "cloze",
-                  "value": 2
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 4
-      },
-      {
-        "number": 3,
-        "type": 4,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "cloze",
-                  "value": 1
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 4
-      },
-      {
-        "number": 4,
-        "type": 4,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "cloze",
-                  "value": 1
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 4
-      },
-      {
-        "number": 5,
-        "type": 4,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "cloze",
-                  "value": 1
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 4
-      },
-      {
-        "number": 6,
-        "type": 4,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "cloze",
-                  "value": 1
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 4
-      },
-      {
-        "number": 7,
-        "type": 4,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "cloze",
-                  "value": 1
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 4
-      },
-      {
-        "number": 8,
-        "type": 4,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "cloze",
-                  "value": 1
-                }
-              ]
-            },
-            {
-              "blocks": []
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 4
-      }
-    ]
-  },
-  {
-    "number": 3,
-    "name": "判断题(每小题",
-    "questions": [
-      {
-        "number": 1,
-        "type": 3,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "有功能的血红蛋白是具有三级结构的蛋白。(       )",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 3
-      },
-      {
-        "number": 2,
-        "type": 3,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "基因的化学本质是蛋白质。(       )",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 3
-      },
-      {
-        "number": 3,
-        "type": 3,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "一种酶作用于多种底物时,其天然底物的Km值应该最大。(       )",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 3
-      },
-      {
-        "number": 4,
-        "type": 3,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "磺胺药的抑菌作用机制是直接干扰人体核酸代谢。(       )",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 3
-      },
-      {
-        "number": 5,
-        "type": 3,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "酶的必需基团都位于活性中心。(       )",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 3
-      },
-      {
-        "number": 6,
-        "type": 3,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "三羧酸循环能将草酰乙酸彻底氧化。(       )",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 3
-      },
-      {
-        "number": 7,
-        "type": 3,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "三羧酸循环是体内营养物质彻底氧化分解的共同通路。(       )",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 3
-      },
-      {
-        "number": 8,
-        "type": 3,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "肝是糖原合成的唯一器官。(       )",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 3
-      },
-      {
-        "number": 9,
-        "type": 3,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "嘌呤核苷酸从头合成途径最先合成的核苷酸是IMP。(       )",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 3
-      },
-      {
-        "number": 10,
-        "type": 3,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "有毒物质经过肝脏的生物转化后溶解度均有所降低。(       )",
-                  "param": {}
-                }
-              ]
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 3
-      }
-    ]
-  },
-  {
-    "number": 4,
-    "name": "名词解释(每小题3分,共15分)",
-    "questions": [
-      {
-        "number": 1,
-        "type": 5,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "盐析 ",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": []
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 5
-      },
-      {
-        "number": 2,
-        "type": 5,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "呼吸链 ",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": []
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 5
-      },
-      {
-        "number": 3,
-        "type": 5,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "必需氨基酸",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": []
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 5
-      },
-      {
-        "number": 4,
-        "type": 5,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "半保留复制  ",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 5
-      },
-      {
-        "number": 5,
-        "type": 5,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "模板链",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": " ",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": []
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 5
-      }
-    ]
-  },
-  {
-    "number": 5,
-    "name": "简答题(共30分)",
-    "questions": [
-      {
-        "number": 1,
-        "type": 5,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "与一般催化剂相比,酶催化作用的个性特征有哪些?(6分)",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 5
-      },
-      {
-        "number": 2,
-        "type": 5,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "写出糖无氧氧化的生理意义。(9分)",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 5
-      },
-      {
-        "number": 3,
-        "type": 5,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "写出酮体生成的部位、关键酶、原料及生理意义。(10分)",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 5
-      },
-      {
-        "number": 4,
-        "type": 5,
-        "body": {
-          "sections": [
-            {
-              "blocks": [
-                {
-                  "type": "text",
-                  "value": "遗传密码的特点有哪些?(5分)",
-                  "param": {}
-                }
-              ]
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            },
-            {
-              "blocks": []
-            }
-          ]
-        },
-        "options": [],
-        "subQuestions": [],
-        "answer": {
-          "sections": []
-        },
-        "structType": 5
-      }
-    ]
-  }
-]

+ 2 - 2
src/modules/question/datas/paperParseData.json

@@ -187,7 +187,7 @@
     "questions": [
       {
         "number": 11,
-        "type": 1,
+        "type": 2,
         "body": {
           "sections": [
             {
@@ -210,7 +210,7 @@
       },
       {
         "number": 12,
-        "type": 1,
+        "type": 2,
         "body": {
           "sections": [
             {