维修定损分页问题处理

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