From ece2dfeb926d728b10db38038e4d12e9e9851c24 Mon Sep 17 00:00:00 2001 From: chenrui <1187576398@qq.com> Date: 星期五, 06 六月 2025 17:38:10 +0800 Subject: [PATCH] 分页修改 --- src/views/procurementManagement/paymentHistory/index.vue | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/procurementManagement/paymentHistory/index.vue b/src/views/procurementManagement/paymentHistory/index.vue index 842cace..134b011 100644 --- a/src/views/procurementManagement/paymentHistory/index.vue +++ b/src/views/procurementManagement/paymentHistory/index.vue @@ -22,7 +22,7 @@ import { ref } from 'vue' import { Search } from "@element-plus/icons-vue"; import { - paymentHistoryList + paymentHistoryListPage } from "@/api/procurementManagement/paymentEntry.js"; const { proxy } = getCurrentInstance() const isShowSummarySon = ref(true); @@ -76,16 +76,16 @@ page.current = 1 getList() } -const pagination = ({ current, limit }) => { - page.current = current; - page.size = limit; +const pagination = (obj) => { + page.current = obj.page; + page.size = obj.limit; getList() } const getList = () => { tableLoading.value = true - paymentHistoryList({ ...searchForm.value, ...page }).then(res => { + paymentHistoryListPage({ ...searchForm.value, ...page }).then(res => { tableLoading.value = false - tableData.value = res.rows + tableData.value = res.records total.value = res.total }) } -- Gitblit v1.9.3