From 078d75b512918bfb4be6c0ae6e6a339df2d400e2 Mon Sep 17 00:00:00 2001 From: mmc <1556375442@qq.com> Date: Fri, 12 Jun 2026 16:49:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91T=E5=9E=8B=20=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=8D=95=E4=B8=AA=20=E8=B7=AF=E5=BE=84=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=85=A8=E9=83=A8=E8=B7=AF=E7=BA=BF=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=20=20=E4=BF=AE=E6=94=B9=E5=88=AB=E5=90=8D=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device.ts | 20 +++ src/components/devices/DeviceStatusPage.tsx | 140 +++++++++++++------- 2 files changed, 110 insertions(+), 50 deletions(-) diff --git a/src/api/device.ts b/src/api/device.ts index d1a8360..63761d2 100644 --- a/src/api/device.ts +++ b/src/api/device.ts @@ -373,6 +373,26 @@ export function releaseControl(data) { }) } +//修改设备别名 + +export function updateDeviceAliasApi(data) { + return request({ + url: '/forward/device/updateDeviceAlias', + method: 'post', + data + }) +} + +//获取单个路径规划信息 + +export function getSingleRouteList(params) { + return request({ + url: '/iot/workRecord/selectById', + method: 'get', + params + }) +} + diff --git a/src/components/devices/DeviceStatusPage.tsx b/src/components/devices/DeviceStatusPage.tsx index 2f0158e..268590b 100644 --- a/src/components/devices/DeviceStatusPage.tsx +++ b/src/components/devices/DeviceStatusPage.tsx @@ -656,61 +656,101 @@ export default function DeviceStatusPage({ defaultSource="drone" /> ) : robotVideo ? ( - // 全景模式 = 4 分屏 + // 全景模式 = T 型排布 mowerView === 'all' ? (
- {/* 前 */} -
- -
前视
+ {/* 第一行:左视 + 前视 + 右视 三等分 */} +
+ {/* 左视 */} +
+ +
左视
+
+ + {/* 前视 */} +
+ +
前视
+
+ + {/* 右视 */} +
+ +
右视
+
- {/* 后 */} -
- -
后视
-
- {/* 左 */} -
- -
左视
-
- {/* 右 */} -
- -
右视
+ + {/* 第二行:后视 单独一行居中 */} +
+
+ +
后视
+
) : (