From b34efa5eb09a1b749df339553d405e02cee4e76e Mon Sep 17 00:00:00 2001 From: chenhao Date: Mon, 22 Jun 2026 20:11:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=92=8C=E5=AE=A2=E6=88=B7=E7=AB=AF=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F=E5=92=8C=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 `devices/index.less` 中取消注释并应用必要的 CSS 规则 - 更新 `devices/index.tsx` 和 `business/ClientManagement.tsx` 中的滚动配置和样式 - 在 `backend/lombok.config` 中添加 `lombok.copyableAnnotations` 配置 --- backend/lombok.config | 1 + frontend/src/pages/business/ClientManagement.tsx | 5 ++--- frontend/src/pages/devices/index.less | 8 ++++---- frontend/src/pages/devices/index.tsx | 5 ++--- 4 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 backend/lombok.config diff --git a/backend/lombok.config b/backend/lombok.config new file mode 100644 index 0000000..53a4a72 --- /dev/null +++ b/backend/lombok.config @@ -0,0 +1 @@ +lombok.copyableAnnotations += org.springframework.beans.factory.annotation.Qualifier diff --git a/frontend/src/pages/business/ClientManagement.tsx b/frontend/src/pages/business/ClientManagement.tsx index 8ea374f..29845b0 100644 --- a/frontend/src/pages/business/ClientManagement.tsx +++ b/frontend/src/pages/business/ClientManagement.tsx @@ -363,7 +363,6 @@ export default function ClientManagement() { { title: "安装包信息", key: "package", - width: 240, render: (_, record) => ( 大小:{formatFileSize(record.fileSize)} @@ -491,14 +490,14 @@ export default function ClientManagement() { -
+
} : undefined} - scroll={{ x: "max-content" }} + scroll={{x: 1100}} pagination={false} /> diff --git a/frontend/src/pages/devices/index.less b/frontend/src/pages/devices/index.less index 040c9c7..d659561 100644 --- a/frontend/src/pages/devices/index.less +++ b/frontend/src/pages/devices/index.less @@ -175,10 +175,10 @@ font-variant-numeric: tabular-nums; } -//.app-page__table-wrap .ant-table-wrapper .ant-table-cell-fix-right-first, -//.app-page__table-wrap .ant-table-wrapper .ant-table-cell-fix-right-last { -// right: 0 !important; -//} +.app-page__table-wrap .ant-table-wrapper .ant-table-cell-fix-right-first, +.app-page__table-wrap .ant-table-wrapper .ant-table-cell-fix-right-last { + right: 0 !important; +} @media (max-width: 768px) { .devices-page { diff --git a/frontend/src/pages/devices/index.tsx b/frontend/src/pages/devices/index.tsx index bfc2bc6..bfd9229 100644 --- a/frontend/src/pages/devices/index.tsx +++ b/frontend/src/pages/devices/index.tsx @@ -220,7 +220,6 @@ export default function Devices() { { title: t("devicesExt.weatherCityName"), dataIndex: "weatherCityName", - width: 140, render: (text: string) => {text || "-"} }, { @@ -347,13 +346,13 @@ export default function Devices() { -
+
rowKey="deviceId" dataSource={pagedData} loading={loading} columns={columns} - scroll={{ y: "calc(100vh - 520px)", x: 1200 }} + scroll={{y: "calc(100vh - 520px)", x: 1980}} pagination={false} />