From 90716e6624825d2cb7cc0784ede7c535930fee56 Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期一, 09 六月 2025 11:58:34 +0800
Subject: [PATCH] 分页修改
---
src/views/salesManagement/invoiceRegistration/index.vue | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/views/salesManagement/invoiceRegistration/index.vue b/src/views/salesManagement/invoiceRegistration/index.vue
index b97e26e..4995938 100644
--- a/src/views/salesManagement/invoiceRegistration/index.vue
+++ b/src/views/salesManagement/invoiceRegistration/index.vue
@@ -140,7 +140,7 @@
// import {userListNoPage} from "@/api/system/user.js";
import {
getSalesLedgerWithProducts,
- ledgerList,
+ ledgerListPage,
productList,
} from "@/api/salesManagement/salesLedger.js";
import {
@@ -153,7 +153,7 @@
const tableLoading = ref(false)
const page = reactive({
current: 1,
- size: 10,
+ size: 100,
})
const total = ref(0)
// 鐢ㄦ埛淇℃伅琛ㄥ崟寮规鏁版嵁
@@ -189,16 +189,16 @@
page.current = 1
getList()
}
-const paginationChange = ({ current, limit }) => {
- page.current = current;
- page.size = limit;
+const paginationChange = (obj) => {
+ page.current = obj.page;
+ page.size = obj.limit;
getList()
}
const getList = () => {
tableLoading.value = true
- ledgerList({...searchForm.value, ...page}).then(res => {
+ ledgerListPage({...searchForm.value, ...page}).then(res => {
tableLoading.value = false
- tableData.value = res.rows;
+ tableData.value = res.records;
total.value = res.total
expandedRowKeys.value = []
})
--
Gitblit v1.9.3