From 0feea1346890b8d503b6cf7d74199b8b2b1d8d02 Mon Sep 17 00:00:00 2001 From: fanfan Date: Fri, 22 Mar 2024 09:42:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/Index.vue | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/views/order/Index.vue b/src/views/order/Index.vue index 0f51cce..d757ab5 100644 --- a/src/views/order/Index.vue +++ b/src/views/order/Index.vue @@ -215,8 +215,15 @@ @@ -326,8 +333,11 @@ export default { columns, // 当前页码 page: 1, + pageSizes:15, // 列表数据 - orderList: { data: [], total: 0, per_page: 10 }, + orderList: { data: [], total: 0}, + pageSizeOptions:['15', '30', '50'], + showTotal: (total) => `共 ${total} 条记录`, // 显示总数 // 自提门店列表 shopList: [] } @@ -383,7 +393,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.pageSizes }) .then(response => { this.orderList = response.data.list }) @@ -428,11 +438,16 @@ export default { }, // 翻页事件 - onChangePage (current) { + onChangePage (current, size) { this.page = current + this.pageSizes = size + this.handleRefresh() + }, + handleSizeChange(current, size){ + this.page = current + this.pageSizes = size this.handleRefresh() }, - // 删除记录 handleDelete (item) { const app = this