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/basicData/supplierManage/index.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/basicData/supplierManage/index.vue b/src/views/basicData/supplierManage/index.vue index 23d55c5..47b4a36 100644 --- a/src/views/basicData/supplierManage/index.vue +++ b/src/views/basicData/supplierManage/index.vue @@ -122,10 +122,12 @@ { label: '渚涘簲鍟嗗悕绉�', prop: 'supplierName', + width: 250, }, { label: '鍏徃鍦板潃', - prop: 'companyAddress' + prop: 'companyAddress', + width: 220, }, { label: '鑱旂郴鏂瑰紡', @@ -221,9 +223,9 @@ 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 = () => { @@ -231,7 +233,7 @@ listSupplier({...searchForm.value, ...page}).then(res => { tableLoading.value = false tableData.value = res.data.records - total.value = res.total + total.value = res.data.total }) } // 琛ㄦ牸閫夋嫨鏁版嵁 -- Gitblit v1.9.3