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(); }, // 管理