From 0f4e962def9e00b0fbc85e46b8a2442b36a236fd Mon Sep 17 00:00:00 2001 From: Yesol Choi Date: Thu, 29 May 2025 09:19:42 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=ED=8E=98=EC=9D=B4=EC=A7=95=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/app/priceManagement.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pages/app/priceManagement.vue b/src/pages/app/priceManagement.vue index 4146e29..f2361ca 100644 --- a/src/pages/app/priceManagement.vue +++ b/src/pages/app/priceManagement.vue @@ -52,12 +52,21 @@ async function getPriceListData(){ } const result = await getPriceList(priceBase) params.priceData = result.content + console.log("result",result) //페이지 관련 값 설정 totalItems.value = result.totalElements totalPages.value = result.totalPages } const searchPrice = async (item) => { + + let itemPerChangePage; + if(item == totalPages.value){ + itemPerChangePage = totalItems.value / totalPages.value == 0? itemsPerPage : totalItems.value % itemsPerPage + }else{ + itemPerChangePage = itemsPerPage + } + const searchParams = { params: { cateCd : searchParamsList.cateCd, //분야코드 @@ -66,7 +75,7 @@ const searchPrice = async (item) => { regSdt: formatDatefromString(searchParamsList.regSdt),//등록시작일 regEdt: formatDatefromString(searchParamsList.regEdt),//등록종료일 page: item,//페이지 - row: itemsPerPage //아이템갯수 + row: itemPerChangePage //아이템갯수 } } const result = await getPriceList(searchParams)