修改客服工作台商品查询分页

This commit is contained in:
sonjinyon 2024-11-18 13:18:37 +08:00
parent 6f8bd932f1
commit 35366d583c
2 changed files with 4 additions and 3 deletions

View File

@ -14,8 +14,7 @@
</div>
<div>
<el-scrollbar ref="scrollbarRef" always height="calc(115vh - 400px)" @scroll="handleScroll">
<OrderBrowsingHistorys ref="orderBrowsingHistorysRef" />
<OrderBrowsingHistorys ref="orderBrowsingHistorysRef" />
</el-scrollbar>
</div>
</div>

View File

@ -29,6 +29,7 @@ const getHistoryList = async (val: KeFuConversationRespVO,activeName: string,no:
queryParams.userId = val.userId
queryParams.activeName = activeName
queryParams.no = no
queryParams.pageNo = 1
const res = await getOrderPage(queryParams)
total.value = res.total
list.value = res.list
@ -42,7 +43,8 @@ const loadMore = async () => {
queryParams.pageNo += 1
const res = await getOrderPage(queryParams)
total.value = res.total
concat(list.value, res.list)
// concat(list.value, res.list)
list.value = list.value.concat(res.list);
}
defineExpose({ getHistoryList, loadMore })
</script>