From caf2e22df0d5fcb91843a6abc1665188d8d3b14d Mon Sep 17 00:00:00 2001 From: alanpaine Date: Thu, 16 Apr 2026 09:52:29 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=B9=B6=E6=9B=BF=E6=8D=A2=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新 Vite 代理配置中的后端服务器地址和端口 - 将 ExternalAppManagement 和 ClientManagement 页面中的自定义分页逻辑替换为统一的 AppPagination 组件 - 移除表格内嵌的滚动样式,使分页组件独立于表格布局 --- frontend/src/pages/business/ClientManagement.tsx | 14 ++++++++++---- .../src/pages/business/ExternalAppManagement.tsx | 12 +++++++++--- frontend/vite.config.ts | 8 ++++---- 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/frontend/src/pages/business/ClientManagement.tsx b/frontend/src/pages/business/ClientManagement.tsx index 38fe0d0..f52cbaf 100644 --- a/frontend/src/pages/business/ClientManagement.tsx +++ b/frontend/src/pages/business/ClientManagement.tsx @@ -3,7 +3,7 @@ import type { ColumnsType } from "antd/es/table"; import { CloudUploadOutlined, DeleteOutlined, DownloadOutlined, EditOutlined, LaptopOutlined, MobileOutlined, PlusOutlined, ReloadOutlined, SearchOutlined, UploadOutlined } from "@ant-design/icons"; import { useCallback, useEffect, useMemo, useState } from "react"; import PageHeader from "@/components/shared/PageHeader"; -import { getStandardPagination } from "@/utils/pagination"; +import AppPagination from "@/components/shared/AppPagination"; import { createClientDownload, deleteClientDownload, listClientDownloads, type ClientDownloadDTO, type ClientDownloadVO, updateClientDownload, uploadClientPackage } from "@/api/business/client"; import { fetchDictItemsByTypeCode } from "@/api/dict"; import { useDict } from "@/hooks/useDict"; @@ -410,17 +410,23 @@ export default function ClientManagement() { -
+
} : undefined} - scroll={{ x: "max-content", y: "calc(100vh - 360px)" }} - pagination={getStandardPagination(filteredRecords.length, page, pageSize, (nextPage: number, nextSize: number) => { setPage(nextPage); setPageSize(nextSize); })} + scroll={{ x: "max-content" }} + pagination={false} /> + { setPage(nextPage); setPageSize(nextSize); }} + /> setDrawerOpen(false)} width={680} destroyOnHidden forceRender footer={
}> diff --git a/frontend/src/pages/business/ExternalAppManagement.tsx b/frontend/src/pages/business/ExternalAppManagement.tsx index e52d56e..d341aa1 100644 --- a/frontend/src/pages/business/ExternalAppManagement.tsx +++ b/frontend/src/pages/business/ExternalAppManagement.tsx @@ -3,7 +3,7 @@ import type { ColumnsType } from "antd/es/table"; import { AppstoreOutlined, DeleteOutlined, EditOutlined, GlobalOutlined, LinkOutlined, PictureOutlined, PlusOutlined, ReloadOutlined, RobotOutlined, SaveOutlined, SearchOutlined, UploadOutlined } from "@ant-design/icons"; import { useCallback, useEffect, useMemo, useState } from "react"; import PageHeader from "@/components/shared/PageHeader"; -import { getStandardPagination } from "@/utils/pagination"; +import AppPagination from "@/components/shared/AppPagination"; import { createExternalApp, deleteExternalApp, listExternalApps, type ExternalAppDTO, type ExternalAppVO, updateExternalApp, uploadExternalAppApk, uploadExternalAppIcon } from "@/api/business/externalApp"; const { Text } = Typography; @@ -320,9 +320,15 @@ export default function ExternalAppManagement() { -
-
{ setPage(nextPage); setPageSize(nextSize); })} /> +
+
+ { setPage(nextPage); setPageSize(nextSize); }} + /> setDrawerOpen(false)} width={700} destroyOnHidden forceRender footer={
}> diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 6742864..994ea4c 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -14,11 +14,11 @@ export default defineConfig({ server: { port: 5174, proxy: { - "/auth": "http://10.100.53.199:8080", - "/sys": "http://10.100.53.199:8080", - "/api": "http://10.100.53.199:8080", + "/auth": "http://10.100.52.13:8081", + "/sys": "http://10.100.52.13:8081", + "/api": "http://10.100.52.13:8081", "/ws": { - target: "ws://10.100.51.199:8080", + target: "ws://10.100.52.13:8081", ws: true } }