From acbb9dbc192f58f9db7d26b883fad5541988d040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Sat, 21 Mar 2026 14:03:02 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[=EB=AC=B8=EC=84=9C=EC=96=91=EC=8B=9D]?= =?UTF-8?q?=20=EA=B8=B0=EB=B3=B8=20=ED=91=9C=EC=8B=9C=20=EA=B0=9C=EC=88=98?= =?UTF-8?q?=20200=EA=B0=9C=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20=EB=B0=8F=20per?= =?UTF-8?q?=5Fpage=20=EB=93=9C=EB=A1=AD=EB=8B=A4=EC=9A=B4=20=EC=82=AC?= =?UTF-8?q?=EB=9D=BC=EC=A7=80=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Api/Admin/DocumentTemplateApiController.php | 2 +- public/js/pagination.js | 2 +- resources/views/document-templates/index.blade.php | 2 +- .../views/document-templates/partials/table.blade.php | 10 ++++------ 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/app/Http/Controllers/Api/Admin/DocumentTemplateApiController.php b/app/Http/Controllers/Api/Admin/DocumentTemplateApiController.php index cd257a14..7b8eff1e 100644 --- a/app/Http/Controllers/Api/Admin/DocumentTemplateApiController.php +++ b/app/Http/Controllers/Api/Admin/DocumentTemplateApiController.php @@ -71,7 +71,7 @@ public function index(Request $request): View } $templates = $query->orderBy('updated_at', 'desc') - ->paginate($request->input('per_page', 10)); + ->paginate($request->input('per_page', 200)); // 연결된 품목 ID 수집 및 품목명 조회 $allItemIds = $templates->pluck('linked_item_ids')->flatten()->filter()->unique()->values()->toArray(); diff --git a/public/js/pagination.js b/public/js/pagination.js index 2f620118..e06fbd24 100644 --- a/public/js/pagination.js +++ b/public/js/pagination.js @@ -31,7 +31,7 @@ window.getCookie = function(name) { window.getPerPageFromCookie = function() { const savedPerPage = getCookie('pagination_per_page'); - return savedPerPage ? savedPerPage : '10'; // 기본값 10 + return savedPerPage ? savedPerPage : '200'; // 기본값 200 }; // ============================================ diff --git a/resources/views/document-templates/index.blade.php b/resources/views/document-templates/index.blade.php index edb2b8d1..e0f0bd09 100644 --- a/resources/views/document-templates/index.blade.php +++ b/resources/views/document-templates/index.blade.php @@ -32,7 +32,7 @@ class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg transit
- + diff --git a/resources/views/document-templates/partials/table.blade.php b/resources/views/document-templates/partials/table.blade.php index 512e8e65..8f7bccd5 100644 --- a/resources/views/document-templates/partials/table.blade.php +++ b/resources/views/document-templates/partials/table.blade.php @@ -159,9 +159,7 @@ class="text-gray-600 hover:text-red-600 transition" - -@if($templates->hasPages()) -
- @include('partials.pagination', ['paginator' => $templates, 'htmxTarget' => '#template-table', 'htmxTrigger' => 'filterSubmit']) -
-@endif + +
+ @include('partials.pagination', ['paginator' => $templates, 'htmxTarget' => '#template-table', 'htmxTrigger' => 'filterSubmit']) +