zhangjie vor 3 Monaten
Ursprung
Commit
9c19be5e8c

+ 1 - 1
src/modules/base/components/ModifyModeCardInfo.vue

@@ -73,7 +73,7 @@
 
 <script>
 import { updateCard } from "../api";
-import { examConfigByExamIdOrgId } from "@/modules/exam/api";
+import { examConfigByExamIdOrgId } from "@/modules/base/api";
 
 const initModalForm = {
   id: null,

+ 1 - 1
src/modules/mark/components/markParam/MarkParamClass.vue

@@ -161,7 +161,7 @@ export default {
       this.cacheDataMd5 = "";
     },
     getSubmitDataMd5() {
-      this.cacheDataMd5 = MD5(JSON.stringify(this.dataList));
+      return MD5(JSON.stringify(this.dataList));
     },
     async markClassChange() {
       const name = this.classMarkIsOpen ? "开启" : "关闭";

+ 10 - 7
src/modules/mark/components/markParam/MarkParamGroup.vue

@@ -139,6 +139,7 @@ import {
   markSubjectiveUpdateMarkType,
   markSubjectiveUpdateMarkArea,
   markSubjectiveUnbindMarker,
+  markSubjectiveList,
 } from "../../api";
 import { cardDetail } from "../../../card/api";
 import { SCORE_POLICY_TYPE } from "@/constants/enumerate";
@@ -212,6 +213,14 @@ export default {
       const cardContent = JSON.parse(detData.content);
       this.cardPages = cardContent.pages;
     },
+    async updateList() {
+      const params = {
+        examId: this.basicInfo.examId,
+        paperNumber: this.basicInfo.paperNumber,
+      };
+      const subjectRes = await markSubjectiveList(params);
+      this.setSubjectiveTaskList(subjectRes.questions || []);
+    },
     initFillQuestionRanges() {
       if (!this.openMergeMarker) return;
 
@@ -291,13 +300,7 @@ export default {
         questionId: row.id,
         userIds: row.markers.map((item) => item.id),
       });
-
-      this.curRowQuestions.forEach((item) => {
-        this.updateSubjectiveTaskItem({
-          id: item.id,
-          markers: row.markers,
-        });
-      });
+      await this.updateList();
     },
     toSetArea(row) {
       this.curRow = row;

+ 5 - 5
src/modules/mark/components/markParam/MarkParamObjectiveAnswer.vue

@@ -110,7 +110,7 @@
                   漏选给半分:答对,但是漏选了,给该小题一半分,比如满分4分,得2分
                 </p>
                 <p>
-                  漏选给任意分:答对,但是漏选了,设置每对一个选项得分,最大不能超过该小题满分除以该小题选项个数
+                  漏选给任意分:答对,但是漏选了,设置每对一个选项得分,输入的分值*标答个数不能大于小题满分
                 </p>
               </div>
               <i class="el-icon-info ml-1 tooltip-info-icon"></i>
@@ -406,13 +406,13 @@ export default {
       });
     },
     objectivePolicyChange(row) {
-      const { totalScore, answer, objectivePolicy } = row;
+      const { totalScore, optionCount, objectivePolicy } = row;
       if (objectivePolicy === "LEAK") {
-        if (answer.length > 1) {
-          const pickScore = Math.floor((totalScore * 2) / answer.length) / 2;
+        if (optionCount) {
+          const pickScore = Math.floor((totalScore * 2) / optionCount) / 2;
           row.objectivePolicyScore = pickScore;
         } else {
-          row.objectivePolicyScore = 0;
+          row.objectivePolicyScore = undefined;
         }
       } else {
         row.objectivePolicyScore = null;