From 1ae81909c29ce7887f1dc6d6cbcf79945d850b35 Mon Sep 17 00:00:00 2001 From: chenhao Date: Fri, 27 Feb 2026 10:27:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20=E7=BB=9F=E4=B8=80=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=A4=B4=E9=83=A8=E7=BB=84=E4=BB=B6=E5=B9=B6=E9=9B=86?= =?UTF-8?q?=E6=88=90=E5=AD=97=E5=85=B8=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 引入统一的 PageHeader 组件替换各页面自定义头部结构 - 集成 useDict 钩子实现状态标签的动态字典映射 - 更新设备、字典、日志、组织、权限、租户等页面的状态渲染逻辑 - 替换硬编码的选择框选项为字典数据驱动 - 优化日志页面的标签页结构支持动态字典配置 - 统一各页面标题区域的样式和布局结构 --- frontend/src/pages/Dashboard.tsx | 13 ++-- frontend/src/pages/Devices.tsx | 33 ++++++---- frontend/src/pages/Dictionaries.tsx | 54 ++++++++-------- frontend/src/pages/Logs.tsx | 68 +++++++++++++------- frontend/src/pages/Orgs.tsx | 29 ++++++--- frontend/src/pages/Permissions.tsx | 68 ++++++++++++-------- frontend/src/pages/PlatformSettings.tsx | 29 +++++---- frontend/src/pages/RolePermissionBinding.tsx | 31 ++++----- frontend/src/pages/Roles.tsx | 43 +++++++++---- frontend/src/pages/SysParams.tsx | 50 +++++++------- frontend/src/pages/Tenants.tsx | 33 ++++++---- frontend/src/pages/UserRoleBinding.tsx | 31 ++++----- frontend/src/pages/Users.tsx | 34 +++++----- 13 files changed, 295 insertions(+), 221 deletions(-) diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index bafab2e..aa9efbd 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -10,6 +10,7 @@ import { } from "@ant-design/icons"; import { useTranslation } from "react-i18next"; import StatCard from "../components/shared/StatCard/StatCard"; +import PageHeader from "../components/shared/PageHeader"; const { Title, Text } = Typography; @@ -65,13 +66,11 @@ export default function Dashboard() { return (
-
-
- {t('dashboard.title')} - {t('dashboard.subtitle')} -
- -
+