From 54be87efeabcaa10fe8d003c8995fd0c50800794 Mon Sep 17 00:00:00 2001 From: Yer <17633066053@163.com> Date: Thu, 14 Sep 2023 18:07:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E8=A7=A3=E5=86=B3=E5=87=A0?= =?UTF-8?q?=E4=B8=AA=E5=8F=91=E7=8E=B0=E7=9A=84=E9=87=8D=E7=BD=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/src/views/promotion/coupon/coupon.vue | 9 +++++++-- .../views/promotion/full-discount/full-discount.vue | 10 +++++++--- seller/src/views/promotion/pintuan/pintuan.vue | 11 ++++++++--- seller/src/views/promotion/seckill/seckill.vue | 10 +++++++--- 4 files changed, 29 insertions(+), 11 deletions(-) diff --git a/seller/src/views/promotion/coupon/coupon.vue b/seller/src/views/promotion/coupon/coupon.vue index 7e61f22f..ecf49242 100644 --- a/seller/src/views/promotion/coupon/coupon.vue +++ b/seller/src/views/promotion/coupon/coupon.vue @@ -277,9 +277,14 @@ export default { this.getDataList(); }, handleReset() { - this.searchForm = {}; + this.searchForm = { + // 搜索框初始化对象 + pageNumber: 1, // 当前页数 + pageSize: 10, // 页面大小 + sort: "startTime", // 默认排序字段 + order: "desc", // 默认排序方式 + }; this.selectDate = ""; - this.searchForm.pageNumber = 1; this.getDataList(); }, clearSelectAll() { diff --git a/seller/src/views/promotion/full-discount/full-discount.vue b/seller/src/views/promotion/full-discount/full-discount.vue index 012efdea..b7a9b1f4 100644 --- a/seller/src/views/promotion/full-discount/full-discount.vue +++ b/seller/src/views/promotion/full-discount/full-discount.vue @@ -168,9 +168,13 @@ export default { // 重置 handleReset () { this.selectDate = ""; - this.searchForm = {}; - this.searchForm.pageNumber = 1; - this.searchForm.pageSize = 10; + this.searchForm = { + // 搜索框初始化对象 + pageNumber: 1, // 当前页数 + pageSize: 10, // 页面大小 + sort: "startTime", // 默认排序字段 + order: "desc", // 默认排序方式 + }; this.getDataList(); }, // 编辑 diff --git a/seller/src/views/promotion/pintuan/pintuan.vue b/seller/src/views/promotion/pintuan/pintuan.vue index 809f55d2..25f86bae 100644 --- a/seller/src/views/promotion/pintuan/pintuan.vue +++ b/seller/src/views/promotion/pintuan/pintuan.vue @@ -205,10 +205,15 @@ export default { }, // 重置 handleReset() { - this.searchForm = {}; + this.searchForm = { + // 搜索框初始化对象 + pageNumber: 0, // 当前页数 + pageSize: 10, // 页面大小 + sort: "startTime", + order: "desc", // 默认排序方式 + }; this.selectDate = ""; - this.searchForm.pageNumber = 0; - this.searchForm.pageSize = 10; + this.getDataList(); }, // 时间段分别赋值 diff --git a/seller/src/views/promotion/seckill/seckill.vue b/seller/src/views/promotion/seckill/seckill.vue index 2e22a9d8..3314fa7f 100644 --- a/seller/src/views/promotion/seckill/seckill.vue +++ b/seller/src/views/promotion/seckill/seckill.vue @@ -145,10 +145,14 @@ export default { }, // 重置 handleReset () { - this.searchForm = {}; + this.searchForm = { + // 搜索框初始化对象 + pageNumber: 1, // 当前页数 + pageSize: 10, // 页面大小 + sort: "startTime", + order: "desc", // 默认排序方式 + }; this.selectDate = ""; - this.searchForm.pageNumber = 1; - this.searchForm.pageSize = 10; this.getDataList(); }, // 管理