瀏覽代碼

fix: 单双评设置问题

zhangjie 2 月之前
父節點
當前提交
3683fcfbc6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/modules/mark/components/markParam/ModifyMarkType.vue

+ 2 - 2
src/modules/mark/components/markParam/ModifyMarkType.vue

@@ -85,7 +85,7 @@ import { mapState } from "vuex";
 
 const initModalForm = {
   doubleEnable: false,
-  doubleRate: 100,
+  doubleRate: 0,
   arbitrateThreshold: null,
   scorePolicy: "AVG",
 };
@@ -136,8 +136,8 @@ export default {
   methods: {
     visibleChange() {
       this.modalForm = this.$objAssign(initModalForm, this.instance);
+      this.modalForm.doubleRate = this.modalForm.doubleRate || 0;
       this.modalForm.doubleEnable = this.modalForm.doubleRate > 0;
-      this.modalForm.doubleRate = this.modalForm.doubleRate || 100;
       this.modalForm.arbitrateThreshold =
         this.modalForm.arbitrateThreshold || undefined;
     },