From cd6beef38834a420d591fb021413df83449f3cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Mon, 7 Sep 2026 00:02:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=9C=80=E6=B1=82):=20=E2=91=A0=E5=85=A8?= =?UTF-8?q?=E7=AB=99=E5=88=97=E8=A1=A8/=E5=8D=A1=E7=89=87=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E7=BB=9F=E4=B8=80=E4=B8=BA=E5=85=B1=E4=BA=AB=20OldPag?= =?UTF-8?q?ination(=E5=85=B1N=E6=9D=A1+10/20/50/100=E6=9D=A1=E6=95=B0?= =?UTF-8?q?=E5=8F=AF=E9=80=89+=E8=B7=B3=E9=A1=B5)=20=E2=91=A1=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=94=A8=E6=88=B7=E8=8F=9C=E5=8D=95=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=94=B9=E5=B7=A6=E5=8F=B3=E5=B8=83=E5=B1=80(=E5=90=8E?= =?UTF-8?q?=E5=8F=B0|=E6=A1=8C=E9=9D=A2=E7=AB=AF=E5=B9=B6=E6=8E=92)=20?= =?UTF-8?q?=E2=91=A2=E4=BF=AE=E5=A4=8D=E8=A7=92=E8=89=B2=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E5=A4=B1=E6=95=88(normalizeUserPageParams=20=E7=99=BD=E5=90=8D?= =?UTF-8?q?=E5=8D=95=E4=B8=A2=20role=20=E5=AD=97=E6=AE=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-frontend-vue/src/api/users-dto.ts | 1 + .../src/components/OldPagination.vue | 121 ++++++++++++++++++ .../src/pages/account/UserMenuAuthTree.vue | 68 ++++++---- .../src/pages/account/UsersPage.vue | 20 +-- .../src/pages/asin/AsinInvalidPage.vue | 27 ++-- .../src/pages/asin/DedupeRegistryPage.vue | 28 ++-- .../src/pages/asin/ProductCategoryPage.vue | 18 +-- .../src/pages/asin/QueryAsinPage.vue | 29 ++--- .../src/pages/asin/SkipPricePage.vue | 29 ++--- .../RecordsDigitalHumanVersionPage.vue | 30 ++--- .../src/pages/records/RecordsHistoryPage.vue | 27 ++-- .../src/pages/shop/ShopKeysPage.vue | 27 ++-- .../src/pages/shop/ShopManagePage.vue | 27 ++-- .../src/pages/tasks/ImageVideoTasksPage.vue | 27 ++-- .../src/pages/tasks/ShopDataTasksPage.vue | 46 +++---- .../tests/align-pagination.test.ts | 35 ++--- .../tests/align-shop-data-grid.test.ts | 2 +- admin-frontend-vue/tests/task-250.test.ts | 6 +- 18 files changed, 323 insertions(+), 245 deletions(-) create mode 100644 admin-frontend-vue/src/components/OldPagination.vue diff --git a/admin-frontend-vue/src/api/users-dto.ts b/admin-frontend-vue/src/api/users-dto.ts index 827bdafc..8e20a051 100644 --- a/admin-frontend-vue/src/api/users-dto.ts +++ b/admin-frontend-vue/src/api/users-dto.ts @@ -61,6 +61,7 @@ export function normalizeUserPageParams(raw: Partial): UserListP keyword, createdById: typeof raw.createdById === 'number' ? raw.createdById : null, adminId: typeof raw.adminId === 'number' ? raw.adminId : null, + role: typeof raw.role === 'string' ? raw.role.trim() || undefined : undefined, } } diff --git a/admin-frontend-vue/src/components/OldPagination.vue b/admin-frontend-vue/src/components/OldPagination.vue new file mode 100644 index 00000000..56ef68d0 --- /dev/null +++ b/admin-frontend-vue/src/components/OldPagination.vue @@ -0,0 +1,121 @@ + + + + + diff --git a/admin-frontend-vue/src/pages/account/UserMenuAuthTree.vue b/admin-frontend-vue/src/pages/account/UserMenuAuthTree.vue index 7865a8b9..7f6200e0 100644 --- a/admin-frontend-vue/src/pages/account/UserMenuAuthTree.vue +++ b/admin-frontend-vue/src/pages/account/UserMenuAuthTree.vue @@ -59,31 +59,33 @@ watch(