Commit 57bdeaf3 by 匡雅琴

Merge branch 'kuangyq_dev_v3.2.0' into 'v3.2.0'

解决切换无奖励错误问题

See merge request !83
2 parents 2ec0c208 11cda4b9
...@@ -1422,15 +1422,19 @@ export default { ...@@ -1422,15 +1422,19 @@ export default {
}, },
// 奖励模式切换 // 奖励模式切换
rewardTypeChange(itm) { rewardTypeChange(itm) {
console.log(itm)
if (itm.rewardType == 2) { if (itm.rewardType == 2) {
this.$nextTick(() => { this.$nextTick(() => {
this.$set(itm, 'triggerValue', '') this.$set(itm, 'triggerValue', '')
this.$set(itm, 'rewardCount', '') this.$set(itm, 'rewardCount', '')
this.$set(itm, 'rewardScore', '')
this.$set(itm, 'minTriggerValue', '1') this.$set(itm, 'minTriggerValue', '1')
}) })
} else if (itm.rewardType == 1) { } else if (itm.rewardType == 1) {
this.$nextTick(() => { this.$nextTick(() => {
this.$set(itm, 'triggerValue', '')
this.$set(itm, 'rewardCount', '') this.$set(itm, 'rewardCount', '')
this.$set(itm, 'rewardScore', '')
this.$set(itm, 'minTriggerValue', '1') this.$set(itm, 'minTriggerValue', '1')
}) })
} else { } else {
...@@ -1438,7 +1442,10 @@ export default { ...@@ -1438,7 +1442,10 @@ export default {
this.$set(itm, 'rewardCount', '') this.$set(itm, 'rewardCount', '')
this.$set(itm, 'minTriggerValue', '') this.$set(itm, 'minTriggerValue', '')
this.$set(itm, 'rewardScore', '') this.$set(itm, 'rewardScore', '')
this.$set(itm, 'repeatCount', '')
this.$set(itm, 'repeatFlag', false)
} }
console.log(itm, '---')
}, },
// 奖励次数切换 // 奖励次数切换
rewardCountChange(itm) { rewardCountChange(itm) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!