This commit is contained in:
mmc
2026-05-22 15:03:43 +08:00
parent e1d11a69d8
commit 92484fc942
3 changed files with 13 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ export function postFlightCommmand(data) {
//切换相机
export function changeCamera(data) {
export function changeCameragateway(data) {
return request({
url: '/iot/UAV/changeCamera',
method: 'post',
@@ -130,6 +130,15 @@ export function changeCamera(data) {
})
}
//切换飞机摄像头/iot/UAV/changeLens
export function changeCameraPlane(data) {
return request({
url: '/iot/UAV/changeLens',
method: 'post',
data
})
}
//直播心跳
export function postLiveHeartbeat(data) {

View File

@@ -242,7 +242,9 @@ export default function DeviceOverviewPage({ devices, planedevices, devicesAll,
<div><span style={{ color: '#1890ff' }}>———</span> 巡检航线</div>
<div><span style={{ color: '#fa8c16' }}>———</span> 机器人路径</div>
<div><span style={{ color: '#52c41a' }}>———</span> 清洗路径</div>
<div>🚗 设备位置</div>
<div>🚗 机器位置</div>
<div>✈️ 无人机位置</div>
<div><span style={{ color: '#1890ff' }}>●</span> 补给/充电点</div>
<div><span style={{ color: '#ff4d4f' }}>■</span> 障碍/禁入区</div>
</div>

View File

@@ -64,7 +64,6 @@ export default function DeviceIndexPage() {
|| '无人机',
}));
// ========================================================
setDevices(devData);
setPlaneDevices(planeData);