diff --git a/src/pages/work/bill/creditCardBill/list.vue b/src/pages/work/bill/creditCardBill/list.vue index 3860836..e0d8c30 100644 --- a/src/pages/work/bill/creditCardBill/list.vue +++ b/src/pages/work/bill/creditCardBill/list.vue @@ -174,7 +174,12 @@ function loadmore() { function getList() { status.value = 'loading' listCreditCardBill({ pageSize: 10, pageNum: pageNum.value, ...queryParams.value }).then(res => { - listData.value = listData.value.concat(res.rows) + let rows = res.rows + // 如果查询条件是 billState='0',对数据进行倒序排列 + if (queryParams.value.billState === '0' && rows && rows.length > 0) { + rows = rows.reverse() + } + listData.value = listData.value.concat(rows) if (listData.value.length < res.total) { status.value = 'loadmore' } else {