ソースを参照

fix:
- 核查整改对应各自的得分

梦辉 5 ヶ月 前
コミット
085a38290e

+ 7 - 1
src/subPages/pages/commitment/components/commitmentConfirmForm/index.vue

@@ -61,17 +61,22 @@ export default {
       //如果选择的不是符合,核查得分选择去掉符合
       //先清空核查得分
       this.formStates.auditScore = ''
-      if (this.formStates.auditResult !== '符合') {
+      if (this.formStates.auditResult === '整改') {
         this.checkGoalColumns = [
           {
             text: '整改 0分',
             value: 0
           },
+        ]
+        this.formStates.auditScore = '整改 0分'
+      } else if (this.formStates.auditResult === '整改扣分') {
+        this.checkGoalColumns = [
           {
             text: '整改扣分 -10分',
             value: -10
           }
         ]
+        this.formStates.auditScore = '整改扣分 -10分'
       } else {
         this.checkGoalColumns = [
           {
@@ -79,6 +84,7 @@ export default {
             value: 0
           }
         ]
+        this.formStates.auditScore = '符合'
       }
     },
     handleCheckGoalConfirm(value) {