zhangjie преди 2 години
родител
ревизия
22dd97fd8f
променени са 1 файла, в които са добавени 7 реда и са изтрити 1 реда
  1. 7 1
      src/modules/base/components/assignment/AssignConfig.vue

+ 7 - 1
src/modules/base/components/assignment/AssignConfig.vue

@@ -52,9 +52,12 @@
           @change="openRebuildChange"
           >重修单独设置赋分系数</el-checkbox
         >
-        <el-checkbox v-model="modalForm.openRound"
+        <el-checkbox class="ml-4" v-model="modalForm.openRound"
           >赋分后59分自动加1</el-checkbox
         >
+        <el-checkbox v-model="modalForm.openTotalScoreRound"
+          >原始分四舍五入</el-checkbox
+        >
       </el-form-item>
       <el-form-item>
         <div v-if="modalForm.all">
@@ -181,6 +184,7 @@ export default {
         value: undefined,
         rebuildValue: undefined,
         openRound: false,
+        openTotalScoreRound: false,
         detail: [],
       },
       formulas: {
@@ -219,6 +223,7 @@ export default {
     this.modalForm.id = this.detailInfo.id;
     this.modalForm.formula = this.detailInfo.formula;
     this.modalForm.openRound = this.detailInfo.openRound;
+    this.modalForm.openTotalScoreRound = this.detailInfo.openTotalScoreRound;
     if (this.detailInfo.coefficient) {
       const coefficient = JSON.parse(this.detailInfo.coefficient);
       this.modalForm.all = coefficient.all;
@@ -319,6 +324,7 @@ export default {
         id: this.modalForm.id,
         formula: this.modalForm.formula,
         openRound: this.modalForm.openRound,
+        openTotalScoreRound: this.modalForm.openTotalScoreRound,
         coefficient: this.modalForm,
       };
       this.detailData.errorMsg = "";