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