zhangjie преди 5 месеца
родител
ревизия
9041f8e036
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/features/student/studentInspect/MarkBody.vue

+ 2 - 1
src/features/student/studentInspect/MarkBody.vue

@@ -142,6 +142,7 @@ import {
   loadImage,
   addHeaderTrackColorAttr,
   calcSumPrecision,
+  toPrecision,
 } from "@/utils/utils";
 import { dragImage } from "@/features/mark/use/draggable";
 import { maxNum } from "@/utils/utils";
@@ -183,7 +184,7 @@ const objectiveScore = $computed(() => {
   return store.currentTask?.objectiveScore || 0;
 });
 const subjectiveScore = $computed(() => {
-  return totalScore - objectiveScore;
+  return toPrecision(totalScore - objectiveScore);
 });
 
 let sliceImagesWithTrackList: SliceImage[] = reactive([]);