From ea37bfe3e61692289e7a55767b4781288a20e21a Mon Sep 17 00:00:00 2001 From: khalil Date: Tue, 8 Jul 2025 12:09:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B8=E8=BF=9024-=E4=B8=AA=E4=BA=BA-?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/luckGift/luckGiftData.vue | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/views/luckGift/luckGiftData.vue b/src/views/luckGift/luckGiftData.vue index 25be1b3..a87e073 100644 --- a/src/views/luckGift/luckGiftData.vue +++ b/src/views/luckGift/luckGiftData.vue @@ -18,6 +18,7 @@
时间 @@ -163,6 +164,7 @@ { this.total = res.data.dataPage.total; this.tableData = res.data.dataPage.rows; @@ -384,6 +395,28 @@ export default { } }); }, + handleDateChange (val) { + if (val && !this.inquire.sortable) { + this.inquire.sortable = 'custom'; + this.inquire.sortCol = undefined; + this.inquire.sortOrder = undefined; + } + if (!val && this.inquire.sortable) { + this.inquire.sortable = false; + this.inquire.sortCol = undefined; + this.inquire.sortOrder = undefined; + } + }, + handleSortChange (data) { + if (data.order) { + this.inquire.sortCol = data.prop; + this.inquire.sortOrder = data.order == "ascending" ? "asc" : "desc"; + } else { + this.inquire.sortCol = undefined; + this.inquire.sortOrder = undefined + } + this.getData(); + }, // 分页导航 handleSizeChange () { this.getData();