From 1f39e1f29189c200e41103740c9eb748567b79c6 Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Thu, 21 Mar 2024 16:55:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/lucky/LuckyGiftDetail.vue | 11 ++++++---- src/views/lucky/LuckyGiftRangeView.vue | 28 ++++++++++++++++++++++++-- 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/src/views/lucky/LuckyGiftDetail.vue b/src/views/lucky/LuckyGiftDetail.vue index a4c64b4..8852614 100644 --- a/src/views/lucky/LuckyGiftDetail.vue +++ b/src/views/lucky/LuckyGiftDetail.vue @@ -121,8 +121,11 @@ export default { }, created() { getAll({ giftType: 16 }).then((res) => { - this.inquire.gifts = res.data; - this.inquire.giftId = res.data[0].giftId; + var arr = []; + arr = res.data; + arr.unshift({ giftId: null, giftName: "全部" }); + this.inquire.gifts = arr; + this.inquire.giftId = arr[0].giftId; }); this.getData(); }, @@ -150,14 +153,14 @@ export default { }, // 导出 exportDate() { - luckyGiftRewardRecordExport({ + luckyGiftRewardRecordExport({ giftId: this.inquire.giftId, sendErBanNo: this.inquire.senUserId, }).then(); }, // 分页导航 handleSizeChange() { - this.getData(); + this.getData(); }, handleCurrentChange() { this.getData(); diff --git a/src/views/lucky/LuckyGiftRangeView.vue b/src/views/lucky/LuckyGiftRangeView.vue index 5798484..1c700c3 100644 --- a/src/views/lucky/LuckyGiftRangeView.vue +++ b/src/views/lucky/LuckyGiftRangeView.vue @@ -4,7 +4,7 @@