|
@@ -598,11 +598,13 @@ export default {
|
|
|
}
|
|
|
if (resultObj.giveRuleList && resultObj.giveRuleList.length > 0) {
|
|
|
_this.fullGiftRuleList = resultObj.giveRuleList
|
|
|
- _this.$nextTick(() => {
|
|
|
- resultObj.giveRuleList.forEach((item, i) => {
|
|
|
- _this.$refs['offerProduct' + i][0].setTabVal(_this.newData(resultObj.giftProductMap['GIFT' + (i * 1 + 1)]))
|
|
|
+ if (resultObj.giftProductMap && Object.keys(resultObj.giftProductMap).length > 0) {
|
|
|
+ _this.$nextTick(() => {
|
|
|
+ resultObj.giveRuleList.forEach((item, i) => {
|
|
|
+ _this.$refs['offerProduct' + i][0].setTabVal(_this.newData(resultObj.giftProductMap['GIFT' + (i * 1 + 1)]))
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
+ }
|
|
|
}
|
|
|
// 重新组成保存数据
|
|
|
if (resultObj.gateProductList && resultObj.gateProductList.length > 0) {
|