diff --git a/src/views/lucky/LuckyGiftDetail.vue b/src/views/lucky/LuckyGiftDetail.vue index 5abb139..22c0648 100644 --- a/src/views/lucky/LuckyGiftDetail.vue +++ b/src/views/lucky/LuckyGiftDetail.vue @@ -13,7 +13,7 @@ -
+
送礼用户ID
+ +
+
+ 日期 + + +
+
查询 导出 @@ -96,6 +110,7 @@ import { getRewardList, luckyGiftRewardRecordExport, } from "@/api/lucky/luckyGiftRangeConfig"; +import { dateFormat } from "@/utils/system-helper"; import { ElMessage } from "element-plus"; export default { name: "LuckyGiftDetail", @@ -107,6 +122,7 @@ export default { gifts: [], giftId: "", senUserId: "", + time: "", }, // 表格 tableData: [], @@ -133,11 +149,19 @@ export default { // 查询 getData() { this.loading = true; + let startTime = ""; + let endTime = ""; + if (this.inquire.time && this.inquire.time.length > 0) { + startTime = dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss"); + endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss"); + } getGiftSendPage({ page: this.currentPage, pageSize: this.pageSize, giftId: this.inquire.giftId, sendErBanNo: this.inquire.senUserId, + startTime: startTime, + endTime: endTime, }).then((res) => { this.total = res.data.total; this.tableData = res.data.records; @@ -154,14 +178,24 @@ export default { // 导出 exportDate() { var obj = {}; + let startTime = ""; + let endTime = ""; + if (this.inquire.time && this.inquire.time.length > 0) { + startTime = dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss"); + endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss"); + } if (this.inquire.giftId == null || this.inquire.giftId == "null") { obj = { sendErBanNo: this.inquire.senUserId, + startTime: dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss"), + endTime: dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss"), }; } else { obj = { giftId: this.inquire.giftId, sendErBanNo: this.inquire.senUserId, + startTime: dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss"), + endTime: dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss"), }; }