恢复设备点检日志每页十条分页
Some checks failed
Release pipeline / publish (push) Has been cancelled
Release pipeline / Always run job (push) Has been cancelled

This commit is contained in:
sheng
2026-06-26 16:49:53 +08:00
parent bb2f1d4cd2
commit ea39d9f8a3

View File

@@ -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: 25, total: 0 }, pagination: { current: 1, size: 10, 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) || 25 const pageSize = Number(this.pagination.size) || 10
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 || 25) this.pagination.size = Number(page.size || page.pageSize || this.pagination.size || 10)
this.fetchData() this.fetchData()
}, },
async handleExport () { async handleExport () {