From 012efd4116c8ee732aab734700974a2b02266c11 Mon Sep 17 00:00:00 2001 From: fanfan Date: Fri, 22 Mar 2024 11:36:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=A9=E4=BD=99=E6=9C=AA=E8=B5=B0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E5=88=86=E9=A1=B5=E5=8A=A0=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E9=A1=B5=E6=95=B0=E5=A4=A7=E5=B0=8F=E6=9D=A1?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/apps/dealer/order/Index.vue | 29 +++- src/views/market/presale/Index copy 2.vue | 24 +++- src/views/market/presale/modules/Log.vue | 60 ++++---- src/views/order/refund/Index.vue | 165 +++++++++++----------- src/views/order/tools/delivery/Index.vue | 25 +++- src/views/order/tools/delivery/Record.vue | 26 +++- src/views/server/Order.vue | 22 ++- 7 files changed, 221 insertions(+), 130 deletions(-) diff --git a/src/views/apps/dealer/order/Index.vue b/src/views/apps/dealer/order/Index.vue index 856ebc8..596a979 100644 --- a/src/views/apps/dealer/order/Index.vue +++ b/src/views/apps/dealer/order/Index.vue @@ -184,8 +184,15 @@ @@ -279,8 +286,11 @@ export default { columns, // 当前页码 page: 1, + pageSize: 15, + pageSizeOptions: ['15', '30', '50'], + showTotal: (total) => `共 ${total} 条记录`, // 显示总数 // 列表数据 - orderList: { data: [], total: 0, per_page: 10 } + orderList: { data: [], total: 0} } }, beforeCreate () { @@ -324,7 +334,7 @@ export default { getList () { const { queryParam, page } = this this.isLoading = true - return Api.list({ ...queryParam, page }) + return Api.list({ ...queryParam, page,pageSize:this.pageSize }) .then(response => { this.orderList = response.data.list }) @@ -367,12 +377,17 @@ export default { handleReset () { this.searchForm.resetFields() }, - - // 翻页事件 - onChangePage (current) { + // 翻页事件 + onChangePage(current, size) { this.page = current + this.pageSize = size this.handleRefresh() - } + }, + handleSizeChange(current, size){ + this.page = current + this.pageSize = size + this.handleRefresh() + }, } } diff --git a/src/views/market/presale/Index copy 2.vue b/src/views/market/presale/Index copy 2.vue index 412d5b1..2dffbcb 100644 --- a/src/views/market/presale/Index copy 2.vue +++ b/src/views/market/presale/Index copy 2.vue @@ -146,8 +146,15 @@ @@ -250,6 +257,9 @@ export default { columns, // 当前页码 page: 1, + pageSize: 15, + pageSizeOptions: ['15', '30', '50'], + showTotal: (total) => `共 ${total} 条记录`, // 显示总数 // 列表数据 orderList: { data: [], total: 0, per_page: 10 }, // 自提门店列表 @@ -307,7 +317,7 @@ export default { getList () { const { dataType, queryParam, page } = this this.isLoading = true - return Api.list({ dataType, ...queryParam, page }) + return Api.list({ dataType, ...queryParam, page,pageSize:this.pageSize }) .then(response => { this.orderList = response.data.list console.log('🚀 ~ file: Index.vue:312 ~ getList ~ this.orderList:', this.orderList) @@ -352,9 +362,15 @@ export default { this.searchForm.resetFields() }, - // 翻页事件 - onChangePage (current) { + // 翻页事件 + onChangePage(current, size) { this.page = current + this.pageSize = size + this.handleRefresh() + }, + handleSizeChange(current, size){ + this.page = current + this.pageSize = size this.handleRefresh() }, diff --git a/src/views/market/presale/modules/Log.vue b/src/views/market/presale/modules/Log.vue index 149409b..3547522 100644 --- a/src/views/market/presale/modules/Log.vue +++ b/src/views/market/presale/modules/Log.vue @@ -12,10 +12,10 @@
-
- +
+
-