diff --git a/src/api/attachment.js b/src/api/attachment.js
index d2a29e54..6d40ba6a 100644
--- a/src/api/attachment.js
+++ b/src/api/attachment.js
@@ -5,11 +5,11 @@ const baseUrl = '/api/admin/attachments'
const attachmentApi = {}
-attachmentApi.list = pagination => {
+attachmentApi.query = params => {
return service({
url: baseUrl,
- method: 'get',
- params: pagination
+ params: params,
+ method: 'get'
})
}
diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue
index 57b55d4c..76c45d9e 100644
--- a/src/views/attachment/AttachmentList.vue
+++ b/src/views/attachment/AttachmentList.vue
@@ -8,7 +8,7 @@
-
+
@@ -29,7 +29,7 @@
- 查询
+ 查询
重置
@@ -63,10 +63,11 @@
+ />
{
+ this.queryParam.page = this.pagination.current - 1
+ this.queryParam.size = this.pagination.pageSize
+ this.queryParam.sort = this.pagination.sort
+ attachmentApi.query(this.queryParam).then(response => {
this.attachments = response.data.data.content
this.pagination.total = response.data.data.total
})
@@ -262,8 +270,9 @@ export default {
this.drawerVisible = false
},
handlePaginationChange(page, pageSize) {
- this.pagination.page = page
- this.pagination.size = pageSize
+ this.$log.debug(`Current: ${page}, PageSize: ${pageSize}`)
+ this.pagination.current = page
+ this.pagination.pageSize = pageSize
this.loadAttachments()
},
handleUpload(option) {
diff --git a/src/views/comment/CommentList.vue b/src/views/comment/CommentList.vue
index 3cd3919c..c7dcc331 100644
--- a/src/views/comment/CommentList.vue
+++ b/src/views/comment/CommentList.vue
@@ -132,7 +132,6 @@ export default {
size: 10,
sort: null,
keyword: null,
- categoryId: null,
status: null
},
selectedRowKeys: [],