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 @@
-
- +
+
-