将原本通过分数正负判断奖惩类型的逻辑,改为直接使用表单中配置的奖惩类型字段
@@ -1222,9 +1222,9 @@ const saveIndicator = () => {
return
}
- const rewardPunishmentType = indicatorDialog.form.score > 0 ? '1' : '0'
+
list.forEach(detail => {
- detail.rewardPunishmentType = rewardPunishmentType
+ detail.rewardPunishmentType = indicatorDialog.form.rewardPunishmentType
})
if (indicatorDialog.mode === 'add') {