diff --git a/components/HiddenInfo/gwj/index.js b/components/HiddenInfo/gwj/index.js
index f87daa6..0618bfb 100644
--- a/components/HiddenInfo/gwj/index.js
+++ b/components/HiddenInfo/gwj/index.js
@@ -12,6 +12,7 @@ import HeaderBack from "../../HeaderBack";
import VideoIcon from "../../Icon/VideoIcon";
import PreviewImg from "../../PreviewImg";
import PreviewPdf from "../../PreviewPdf";
+import Video from "../../Video";
/**
* 隐患查看组件(港务局版本)
@@ -42,6 +43,7 @@ function HiddenInfo(props) {
const [acceptImageFiles, setAcceptImageFiles] = useState([]);
const [inspectionAcceptImageFiles, setInspectionAcceptImageFiles] = useState([]);
const [loading, setLoading] = useState(true);
+ const [videoModalOpen, setVideoModalOpen] = useState(true);
const { getFile } = useGetFile();
const query = useGetUrlQuery();
@@ -146,7 +148,14 @@ function HiddenInfo(props) {
}),
},
{ label: "隐患图片", children: },
- ...(hiddenVideoFiles.length > 0 ? [{ label: "隐患视频", children: }] : []),
+ ...(hiddenVideoFiles.length > 0
+ ? [{ label: "隐患视频", children: (
+ {
+ setVideoModalOpen(true);
+ }}
+ />
+ ) }]
+ : []),
]}
/>
{
@@ -420,6 +429,16 @@ function HiddenInfo(props) {
}
+ {
+ videoModalOpen && (
+