维修定损分页问题处理

This commit is contained in:
syruan 2025-07-28 10:14:54 +08:00
parent 5fa4b560a7
commit 94042b4704
1 changed files with 6 additions and 4 deletions

View File

@ -118,7 +118,7 @@ const queryParams = ref({
keyWord: '', // keyWord: '', //
appTaskStatus: 0, // appTaskStatus: 0, //
pageNum: 1, pageNum: 1,
pageSize: 3, pageSize: 10,
}) })
// //
@ -223,7 +223,7 @@ onShow(() => {
const onScrollTolower = debounce(() => { const onScrollTolower = debounce(() => {
console.log('触底事件') console.log('触底事件')
if (total.value > tableList.value.length) { if (total.value > tableList.value.length) {
queryParams.value.pageSize += 5 queryParams.value.pageNum += 1
getTableList() getTableList()
} }
}, 500) }, 500)
@ -231,13 +231,13 @@ const onScrollTolower = debounce(() => {
// tap // tap
const changeTab = (index) => { const changeTab = (index) => {
active.value = index active.value = index
queryParams.value.pageNum = 1
tableList.value = []
if (index == 1) { if (index == 1) {
queryParams.value.appTaskStatus = 0 // queryParams.value.appTaskStatus = 0 //
queryParams.value.pageNum = 1
getTableList(true) getTableList(true)
} else if (index == 2) { } else if (index == 2) {
queryParams.value.appTaskStatus = 1 // queryParams.value.appTaskStatus = 1 //
queryParams.value.pageNum = 1
getTableList(true) getTableList(true)
} }
} }
@ -264,6 +264,8 @@ const handleItem = (item) => {
icon: 'none', icon: 'none',
}) })
setTimeout(() => { setTimeout(() => {
queryParams.value.pageNum = 1
tableList.value = []
getTableList(true) getTableList(true)
}, 1000) }, 1000)