From 4a9d625944557d6db6d07d8164b3a6ea804a42f5 Mon Sep 17 00:00:00 2001 From: Iamasoldier <1272745473@qq.com> Date: Tue, 19 Aug 2025 19:00:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=AE=BE=E5=A4=87=E8=BF=90=E7=BB=B4?= =?UTF-8?q?=E4=B8=AD=E5=BF=83)=EF=BC=9A=E6=96=B0=E5=A2=9E=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E6=8C=87=E4=BB=A4=E4=B8=8B=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/device-ops/map-dashboard/index.tsx | 117 +++++++++++++----- 1 file changed, 85 insertions(+), 32 deletions(-) diff --git a/zlt-web/react-web/src/main/frontend/src/pages/device-ops/map-dashboard/index.tsx b/zlt-web/react-web/src/main/frontend/src/pages/device-ops/map-dashboard/index.tsx index 8921f4d2..103525aa 100644 --- a/zlt-web/react-web/src/main/frontend/src/pages/device-ops/map-dashboard/index.tsx +++ b/zlt-web/react-web/src/main/frontend/src/pages/device-ops/map-dashboard/index.tsx @@ -277,6 +277,9 @@ const DeviceMapDashboard: React.FC = () => { playRtmpUrl: string; } | null>(null); const [currentStreamType, setCurrentStreamType] = useState<'hls' | 'flv' | 'rtmp'>('hls'); + // 自定义指令输入 + const [customMethod, setCustomMethod] = useState('custom'); + const [customPayload, setCustomPayload] = useState('{}'); // 地图相关 const [mapInitialized, setMapInitialized] = useState(false); @@ -2652,38 +2655,88 @@ const DeviceMapDashboard: React.FC = () => { {/* 操作按钮 */} -
- 设备操作 - - - - - -
+
+ 设备操作 + + + + + + + {/* 自定义指令下发 */} +
+
自定义指令下发
+ + setCustomMethod(e.target.value)} + size="small" + /> + setCustomPayload(e.target.value)} + autoSize={{ minRows: 2, maxRows: 6 }} + /> + + +
+
{/* 无人机控制面板 */} {selectedDevice.deviceType === 1 && (