恢复设备点检日志每页十条分页
This commit is contained in:
@@ -82,7 +82,7 @@ export default {
|
||||
tableData: [],
|
||||
userOptions: [],
|
||||
search: { device_code: '', device_name: '', device_check_items_name: '', user_id: '', create_time: [] },
|
||||
pagination: { current: 1, size: 25, total: 0 },
|
||||
pagination: { current: 1, size: 10, total: 0 },
|
||||
columns: []
|
||||
}
|
||||
},
|
||||
@@ -124,7 +124,7 @@ export default {
|
||||
this.loading = true
|
||||
try {
|
||||
const pageNo = Number(this.pagination.current) || 1
|
||||
const pageSize = Number(this.pagination.size) || 25
|
||||
const pageSize = Number(this.pagination.size) || 10
|
||||
const res = await getDetailsList({
|
||||
...this.buildSearchParams(),
|
||||
page_no: pageNo,
|
||||
@@ -150,7 +150,7 @@ export default {
|
||||
},
|
||||
onPageChange (page) {
|
||||
this.pagination.current = Number(page.current || page.currentPage || 1)
|
||||
this.pagination.size = Number(page.size || page.pageSize || this.pagination.size || 25)
|
||||
this.pagination.size = Number(page.size || page.pageSize || this.pagination.size || 10)
|
||||
this.fetchData()
|
||||
},
|
||||
async handleExport () {
|
||||
|
||||
Reference in New Issue
Block a user