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