diff --git a/src/views/coupon_manage/components/coupon_details.vue b/src/views/coupon_manage/components/coupon_details.vue
index 1e7f88b..e36e8ba 100644
--- a/src/views/coupon_manage/components/coupon_details.vue
+++ b/src/views/coupon_manage/components/coupon_details.vue
@@ -38,8 +38,8 @@
-
-
+
+
@@ -71,6 +71,16 @@
+
+
+
@@ -101,7 +111,13 @@ export default {
size: 10
},
resetQuery: null,
- tableData: null
+ tableData: {
+ data: [],
+ page: 0,
+ size: 10,
+ loading: false,
+ total: 0
+ }
}
},
mounted() {
@@ -126,6 +142,9 @@ export default {
page: this.query.page,
size: this.query.size
})
+ this.tableData.loading = false
+ this.tableData.data = res.content
+ this.tableData.total = res.totalElements
},
/**
@@ -157,7 +176,16 @@ export default {
this.query.couponId = obj.id
this.getTableData()
},
-
+ // 分页大小改变
+ sizeChange(e) {
+ this.tableData.size = e
+ this.getTableData()
+ },
+ // 分页回调
+ paginationChange(e) {
+ this.tableData.page = e - 1
+ this.getTableData()
+ },
/**
* 关闭详情
*/