调整设备点检日志默认分页数量
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:44:55 +08:00
parent 06c81370ff
commit bb2f1d4cd2

View File

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