Browse Source

fix(monthlyAssess): 修复奖惩类型赋值逻辑错误

将原本通过分数正负判断奖惩类型的逻辑,改为直接使用表单中配置的奖惩类型字段
huoyi 1 month ago
parent
commit
2b17efb887
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/performanceManage/monthlyAssess/index.vue

+ 2 - 2
src/views/performanceManage/monthlyAssess/index.vue

@@ -1222,9 +1222,9 @@ const saveIndicator = () => {
1222 1222
     return
1223 1223
   }
1224 1224
 
1225
-  const rewardPunishmentType = indicatorDialog.form.score > 0 ? '1' : '0'
1225
+
1226 1226
   list.forEach(detail => {
1227
-    detail.rewardPunishmentType = rewardPunishmentType
1227
+    detail.rewardPunishmentType = indicatorDialog.form.rewardPunishmentType
1228 1228
   })
1229 1229
 
1230 1230
   if (indicatorDialog.mode === 'add') {