From 917145833b5f340596284927c1f354e8430647fe Mon Sep 17 00:00:00 2001 From: fangjiakai <450850793@qq.com> Date: Thu, 8 Jan 2026 10:03:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor(accident):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E4=BA=8B=E6=95=85=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 替换 div 包装器为 Page 组件以统一页面布局 - 移除 HeaderBack 组件并集成到 Page 组件中 - 调整搜索表单项顺序,将日期范围和地点字段位置优化 - 更新导出按钮样式,添加 ghost 属性并修改文本为全部导出 - 为批量删除按钮添加 ghost 属性并优化提示信息 - 修复表单字段间距和组件属性配置 - 移除事故性质字段并添加填报人字段 - 更新模态框确认按钮的 loading 属性为 confirmLoading - 在表单构建器中添加 loading 属性 - 调整详情页面字段显示顺序并添加填报人信息 - 修复附件标签文本格式 - 在监管事故列表中使用 Page 组件替代 --- src/main.js | 2 +- .../Accident/components/Accident/index.js | 80 ++++++++++--------- .../Container/SuperviseAccident/List/index.js | 9 ++- 3 files changed, 48 insertions(+), 43 deletions(-) diff --git a/src/main.js b/src/main.js index c1cdccb..676128f 100644 --- a/src/main.js +++ b/src/main.js @@ -6,7 +6,7 @@ import "dayjs/locale/zh-cn"; import "../blessed_by_buddha"; require("antd/dist/reset.css"); - +require("zy-react-library/css/common.less"); dayjs.locale("zh-cn"); setJJBCommonAntdMessage(message); diff --git a/src/pages/Container/Accident/components/Accident/index.js b/src/pages/Container/Accident/components/Accident/index.js index 88ec4c2..5b1fd9c 100644 --- a/src/pages/Container/Accident/components/Accident/index.js +++ b/src/pages/Container/Accident/components/Accident/index.js @@ -16,13 +16,13 @@ import { NS_ACCIDENT } from "~/enumerate/namespace"; import AddIcon from "zy-react-library/components/Icon/AddIcon"; import DeleteIcon from "zy-react-library/components/Icon/DeleteIcon"; import ExportIcon from "zy-react-library/components/Icon/ExportIcon"; -import HeaderBack from "zy-react-library/components/HeaderBack"; import DictionarySelect from "zy-react-library/components/Select/Dictionary"; import useDownloadBlob from "zy-react-library/hooks/useDownloadBlob"; import useUrlQueryCriteria from "zy-react-library/hooks/useUrlQueryCriteria"; import PreviewImg from "zy-react-library/components/PreviewImg"; import useDownloadFile from "zy-react-library/hooks/useDownloadFile"; import { Permission } from "@cqsjjb/jjb-common-decorator/permission"; +import Page from "zy-react-library/components/Page"; function Accident(props) { @@ -47,17 +47,19 @@ function Accident(props) { }); const typeName = props.type === 1 ? "事件" : "事故"; return ( -