修改客服工作台商品信息查询分页
This commit is contained in:
parent
35366d583c
commit
819fd0862a
@ -8,7 +8,7 @@ import { KeFuConversationRespVO } from '@/api/mall/promotion/kefu/conversation'
|
|||||||
import { getOrderPage } from '@/api/mall/trade/order'
|
import { getOrderPage } from '@/api/mall/trade/order'
|
||||||
import { concat } from 'lodash-es'
|
import { concat } from 'lodash-es'
|
||||||
|
|
||||||
defineOptions({ name: 'OrderBrowsingHistorys' })
|
defineOptions({ name: 'OrderBrowsingHistory' })
|
||||||
|
|
||||||
const list = ref<any>([]) // 列表
|
const list = ref<any>([]) // 列表
|
||||||
const total = ref(0) // 总数
|
const total = ref(0) // 总数
|
||||||
@ -40,7 +40,8 @@ const loadMore = async () => {
|
|||||||
queryParams.pageNo += 1
|
queryParams.pageNo += 1
|
||||||
const res = await getOrderPage(queryParams)
|
const res = await getOrderPage(queryParams)
|
||||||
total.value = res.total
|
total.value = res.total
|
||||||
concat(list.value, res.list)
|
// concat(list.value, res.list)
|
||||||
|
list.value = list.value.concat(res.list);
|
||||||
}
|
}
|
||||||
defineExpose({ getHistoryList, loadMore })
|
defineExpose({ getHistoryList, loadMore })
|
||||||
</script>
|
</script>
|
||||||
|
@ -52,7 +52,8 @@ const loadMore = async () => {
|
|||||||
queryParams.pageNo += 1
|
queryParams.pageNo += 1
|
||||||
const res = await getBrowseHistoryPage(queryParams)
|
const res = await getBrowseHistoryPage(queryParams)
|
||||||
total.value = res.total
|
total.value = res.total
|
||||||
concat(list.value, res.list)
|
// concat(list.value, res.list)
|
||||||
|
list.value = list.value.concat(res.list);
|
||||||
}
|
}
|
||||||
defineExpose({ getHistoryList, loadMore })
|
defineExpose({ getHistoryList, loadMore })
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user