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 && (