From 8eeb4110215f8e80350a98b0659602b979150c64 Mon Sep 17 00:00:00 2001
From: luotaiqian <1147642922@qq.com>
Date: Fri, 14 Aug 2026 17:03:14 +0800
Subject: [PATCH] waring
---
.../SafetyEvalBusiness/RiskWarning/index.js | 50 +++++++++++++++++--
1 file changed, 46 insertions(+), 4 deletions(-)
diff --git a/src/pages/Container/SafetyEvalBusiness/RiskWarning/index.js b/src/pages/Container/SafetyEvalBusiness/RiskWarning/index.js
index 04503d4..1894bf2 100644
--- a/src/pages/Container/SafetyEvalBusiness/RiskWarning/index.js
+++ b/src/pages/Container/SafetyEvalBusiness/RiskWarning/index.js
@@ -12,6 +12,7 @@ import {
Upload,
Flex,
Input,
+ Descriptions,
message,
} from "antd";
import { UploadOutlined } from "@ant-design/icons";
@@ -37,6 +38,7 @@ const RiskWarning = (props) => {
const [total, setTotal] = useState(0);
const [statData, setStatData] = useState({});
const [handleModalOpen, setHandleModalOpen] = useState(false);
+ const [detailModalOpen, setDetailModalOpen] = useState(false);
const [currentRecord, setCurrentRecord] = useState(null);
const [modalForm] = Form.useForm();
const [uploading, setUploading] = useState(false);
@@ -146,6 +148,17 @@ const RiskWarning = (props) => {
>
处理
+ ) : record.handleStatus === "done" ? (
+
) : null,
},
];
@@ -279,6 +292,35 @@ const RiskWarning = (props) => {
+
+ setDetailModalOpen(false)}
+ >
+
+
+ {currentRecord?.projectNo || "-"}
+
+
+ {currentRecord?.evidenceFileUrl ? (
+
+ {getFileName(currentRecord.evidenceFileUrl)}
+
+ ) : (
+ "-"
+ )}
+
+
+ {currentRecord?.remarks || "-"}
+
+
+
);
};
@@ -289,11 +331,11 @@ export default Connect(
)(AntdTableFuncControl(RiskWarning));
/** 证明材料上传字段 - 上传后回填 url */
+const getFileName = (url) =>
+ typeof url === "string" && url.includes("/") ? url.split("/").pop() : url;
+
const UploadButtonField = ({ value, onChange, uploading, setUploading }) => {
- const fileName =
- typeof value === "string" && value.includes("/")
- ? value.split("/").pop()
- : value;
+ const fileName = getFileName(value);
return (