2026-07-20 14:23:04 +08:00
|
|
|
import { Modal } from "antd";
|
|
|
|
|
import { useContext } from "react";
|
|
|
|
|
import { Context } from "~/pages/Container/Map/js/context";
|
|
|
|
|
import MeteorologicalMonitoring from "./MeteorologicalMonitoring";
|
|
|
|
|
|
|
|
|
|
const CustomModal = () => {
|
|
|
|
|
const { modalVisible, modalData, actions } = useContext(Context);
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Modal
|
|
|
|
|
open={modalVisible}
|
|
|
|
|
mask={{ closable: false }}
|
|
|
|
|
footer={null}
|
|
|
|
|
width={1500}
|
|
|
|
|
onCancel={() => {
|
|
|
|
|
actions.resetMark();
|
|
|
|
|
}}
|
|
|
|
|
title={modalData.title || ""}
|
|
|
|
|
wrapClassName="map_bi_model"
|
|
|
|
|
>
|
2026-07-20 16:57:23 +08:00
|
|
|
{
|
|
|
|
|
modalData.markType === "meteorologicalMonitoring" && <MeteorologicalMonitoring />
|
|
|
|
|
}
|
2026-07-20 14:23:04 +08:00
|
|
|
</Modal>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default CustomModal;
|