2025-05-19 14:26:18 +08:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
|
|
import { useDispatch, useSelector } from 'react-redux';
|
|
|
|
|
import { getInfoDlg } from '../../../models/map/selectors';
|
|
|
|
|
import AdPlanViewDlg from './AdPlanViewDlg';
|
|
|
|
|
import DikePatrol from './DikePatrol';
|
|
|
|
|
import DrpStDlg from './DrpStDlg';
|
|
|
|
|
import FzdxDlg from './FzdxDlg';
|
|
|
|
|
import HDStDlg from './HDStDlg';
|
|
|
|
|
import LayersDlg from './LayersDlg';
|
|
|
|
|
import OverallSmtp from './OverallSmtp';
|
|
|
|
|
import PumpDlg from './PumpDlg';
|
|
|
|
|
import ShqxGrbInfoDlg from './ShqxGrbInfoDlg';
|
|
|
|
|
import ShWarnInfo from './ShWarnInfo';
|
|
|
|
|
import SkDlg from './SkDlg';
|
|
|
|
|
import SkSmtp from './SkSmtp';
|
|
|
|
|
import StartWarnResp from './StartWarnResp';
|
|
|
|
|
import WarnRespCloseDlg from './StartWarnResp/WarnRespCloseDlg';
|
|
|
|
|
import WarnRespDisposeDlg from './StartWarnResp/WarnRespDisposeDlg';
|
|
|
|
|
import WarnRespInfoDlg from './StartWarnResp/WarnRespInfoDlg';
|
|
|
|
|
import StWarnRecord from './StWarnRecord';
|
|
|
|
|
import WarnRespPlanViewDlg from './WarnRespPlanViewDlg';
|
|
|
|
|
import ThreeDlg from './Three';
|
2025-05-26 16:37:17 +08:00
|
|
|
import GqzzDlg from './GqzzDlg';
|
|
|
|
|
import GqbzDlg from './GqbzDlg';
|
|
|
|
|
import SqDlg from './SqDlg';
|
|
|
|
|
import LlqdDlg from './LlqdDlg';
|
|
|
|
|
import LlsbDlg from './LlsbDlg';
|
2025-05-26 21:29:05 +08:00
|
|
|
import BxjcDlg from './BxjcBlg'
|
2025-06-06 16:30:16 +08:00
|
|
|
import ByjcDlg from './Byjc1Dlg'
|
2025-05-26 21:29:05 +08:00
|
|
|
import PdfDlg from './PdfDlg'
|
2025-05-28 15:09:02 +08:00
|
|
|
import SyjcDlg from './SyjcDlg'
|
|
|
|
|
import SljcDlg from './SljcDlg'
|
2025-05-29 13:40:49 +08:00
|
|
|
import BjDlg from './BjDlg'
|
2025-06-04 20:41:04 +08:00
|
|
|
import HistoryYyDlg from './HistoryYyDlg';
|
|
|
|
|
import YascDlg from './YascDlg';
|
2025-06-04 20:45:32 +08:00
|
|
|
import YbcgDlg from './YbcgDlg'
|
|
|
|
|
import DdcgDlg from './DdcgDlg'
|
|
|
|
|
import FadbDlg from './FadbDlg'
|
2025-06-05 18:01:20 +08:00
|
|
|
import ShuikuyhDlg from './ShuikuyhDlg';
|
|
|
|
|
import XunchaDlg from './XunchaDlg';
|
|
|
|
|
import XcxqDlg from './XcxqDlg';
|
2025-06-06 16:30:16 +08:00
|
|
|
import WyWarnDlg from './WyWarnDlg';
|
2025-06-09 11:50:05 +08:00
|
|
|
import ShuiChangDlg from './ShuiChangDlg';
|
|
|
|
|
import ShuiyuandiDlg from './ShuiyuandiDlg';
|
2025-06-09 13:13:04 +08:00
|
|
|
import ShuiBengDlg from './ShuiBengDlg'
|
2025-06-09 15:44:06 +08:00
|
|
|
import ShuichangguanwangDlg from './ShuichangguanwangDlg';
|
2025-05-19 14:26:18 +08:00
|
|
|
|
|
|
|
|
function InfoDlg() {
|
|
|
|
|
const infoDlg = useSelector(getInfoDlg);
|
|
|
|
|
const dispatch = useDispatch();
|
|
|
|
|
|
|
|
|
|
const handleClose = () => {
|
|
|
|
|
dispatch.runtime.setInfoDlg(undefined);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if (!infoDlg) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const { layerId, properties } = infoDlg;
|
|
|
|
|
if (layerId === 'RealSkLayer') {
|
|
|
|
|
return <SkDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'RealHDLayer') {
|
|
|
|
|
return <HDStDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'RealDrpLayer') {
|
|
|
|
|
return <DrpStDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === "ShWarn") {
|
|
|
|
|
return <ShWarnInfo record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === "SkSmtp") {
|
|
|
|
|
return <SkSmtp record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === "Layers") {
|
|
|
|
|
return <LayersDlg onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'AdPlanView') {
|
|
|
|
|
return <AdPlanViewDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'FzdxLayer') {
|
|
|
|
|
return <FzdxDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'WarnRespPlanView') {
|
|
|
|
|
return <WarnRespPlanViewDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'StartWarnResp') {
|
|
|
|
|
return <StartWarnResp record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'DisposeWarnResp') {
|
|
|
|
|
return <WarnRespDisposeDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'CloseWarnResp') {
|
|
|
|
|
return <WarnRespCloseDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'WarnRespInfo') {
|
|
|
|
|
return <WarnRespInfoDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'StWarnRecord') {
|
|
|
|
|
return <StWarnRecord record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'ShqxGrbInfo') {
|
|
|
|
|
return <ShqxGrbInfoDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'OverallSmtp') {
|
|
|
|
|
return <OverallSmtp record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'DikePatrol') {
|
|
|
|
|
return <DikePatrol record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'PumpLayer') {
|
|
|
|
|
return <PumpDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'Three') {
|
|
|
|
|
return <ThreeDlg record={properties} onClose={handleClose} />
|
2025-05-26 16:37:17 +08:00
|
|
|
}else if (layerId === 'GqzzLayer') {
|
|
|
|
|
return <GqzzDlg record={properties} onClose={handleClose} />
|
|
|
|
|
}else if (layerId === 'GqbzLayer') {
|
|
|
|
|
return <GqbzDlg record={properties} onClose={handleClose} />
|
|
|
|
|
}else if (layerId === 'sqLayer') {
|
|
|
|
|
return <SqDlg record={properties} onClose={handleClose} />
|
|
|
|
|
}else if (layerId === 'llqdLayer') {
|
|
|
|
|
return <LlqdDlg record={properties} onClose={handleClose} />
|
|
|
|
|
}else if (layerId === 'llsbLayer') {
|
|
|
|
|
return <LlsbDlg record={properties} onClose={handleClose} />
|
2025-05-26 21:29:05 +08:00
|
|
|
}else if (layerId === 'BxjcLayer') {
|
|
|
|
|
return <BxjcDlg record={properties} onClose={handleClose} />
|
|
|
|
|
}else if (layerId === 'SyjcLayer') {
|
2025-05-28 15:09:02 +08:00
|
|
|
return <SyjcDlg record={properties} onClose={handleClose} />
|
2025-05-26 21:29:05 +08:00
|
|
|
}else if (layerId === 'SljcLayer') {
|
2025-05-28 15:09:02 +08:00
|
|
|
return <SljcDlg record={properties} onClose={handleClose} />
|
2025-05-26 21:29:05 +08:00
|
|
|
}else if (layerId === 'ByjcLayer') {
|
2025-05-27 10:27:32 +08:00
|
|
|
return <ByjcDlg record={properties} onClose={handleClose} />
|
2025-05-26 21:29:05 +08:00
|
|
|
}else if (layerId === 'PdfLayer') {
|
|
|
|
|
return <PdfDlg record={properties} onClose={handleClose} />
|
2025-05-29 13:11:26 +08:00
|
|
|
}else if (layerId === 'BjLayer') {
|
2025-05-29 13:40:49 +08:00
|
|
|
return <BjDlg record={properties} onClose={handleClose} />
|
2025-06-04 20:41:04 +08:00
|
|
|
}else if (layerId === 'lsyyLayer') {
|
|
|
|
|
return <HistoryYyDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'YuananLayer') {
|
|
|
|
|
return <YascDlg record={properties} onClose={handleClose} />
|
2025-06-04 20:45:32 +08:00
|
|
|
} else if (layerId === 'YbcgLayer') {
|
|
|
|
|
return <YbcgDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'DdcgLayer') {
|
|
|
|
|
return <DdcgDlg record={properties} onClose={handleClose} />
|
|
|
|
|
} else if (layerId === 'FadbLayer') {
|
|
|
|
|
return <FadbDlg record={properties} onClose={handleClose} />
|
2025-06-05 18:06:53 +08:00
|
|
|
} else if (layerId === 'ShuikuyanghuLayer') {
|
2025-06-05 18:01:20 +08:00
|
|
|
return <ShuikuyhDlg record={properties} onClose={handleClose} />
|
|
|
|
|
}else if (layerId === 'XunchachaoshiLayer') {
|
|
|
|
|
return <XunchaDlg record={properties} onClose={handleClose} />
|
|
|
|
|
}else if (layerId === 'ChaoshiDetailLayer') {
|
|
|
|
|
return <PdfDlg record={properties} onClose={handleClose} />
|
|
|
|
|
}else if (layerId === 'XcxqLayer') {
|
|
|
|
|
return <XcxqDlg record={properties} onClose={handleClose} />
|
2025-06-06 16:30:16 +08:00
|
|
|
}else if (layerId === 'WyWarnLayer') {
|
|
|
|
|
return <WyWarnDlg record={properties} onClose={handleClose} />
|
2025-06-09 11:50:05 +08:00
|
|
|
}else if (layerId === 'ShuichangLayer') {
|
|
|
|
|
return <ShuiChangDlg record={properties} onClose={handleClose} />
|
|
|
|
|
}else if (layerId === 'ShuiyuandiLayer') {
|
|
|
|
|
return <ShuiyuandiDlg record={properties} onClose={handleClose} />
|
2025-06-09 13:13:04 +08:00
|
|
|
}else if (layerId === 'ShuiBengLayer') {
|
|
|
|
|
return <ShuiBengDlg record={properties} onClose={handleClose} />
|
2025-06-09 15:44:06 +08:00
|
|
|
}else if (layerId === 'GwLayer') {
|
|
|
|
|
return <ShuichangguanwangDlg record={properties} onClose={handleClose} />
|
2025-06-04 20:41:04 +08:00
|
|
|
}
|
2025-05-26 16:37:17 +08:00
|
|
|
|
2025-05-19 14:26:18 +08:00
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default React.memo(InfoDlg);
|