diff --git a/src/views/luckGift/luckGiftSet.vue b/src/views/luckGift/luckGiftSet.vue index a1b65ca..3a4eccb 100644 --- a/src/views/luckGift/luckGiftSet.vue +++ b/src/views/luckGift/luckGiftSet.vue @@ -488,14 +488,14 @@ export default { this.inquire.followErbanNoList = res.data.followErbanNoList.join(); // this.inquire.whiteErbanNoProductionRatioMap = res.data.whiteErbanNoProductionRatioMap.join(); this.inquire.blackErbanNoList = res.data.blackErbanNoList.join(); + var newArr = []; var obj = res.data.whiteErbanNoProductionRatioMap; - const arr = Object.keys(obj).map((key) => ({ + var arr = Object.keys(obj).map((key) => ({ userId: key, val: obj[key], })); - var newArr = []; arr.forEach((res, i) => { - this.newArr[i] = res; + newArr[i] = res; }); this.detailsTable = newArr; });