diff --git a/src/api/inspection/robot.js b/src/api/inspection/robot.js
index a1ee25b..fa91960 100644
--- a/src/api/inspection/robot.js
+++ b/src/api/inspection/robot.js
@@ -92,10 +92,10 @@ export function getRobotLocation(robotId) {
* @param {*} robotId
* @returns
*/
-export function getRobotStatus(robotId) {
+export function getRobotStatus(id) {
return request({
- url: `/inspection/robot/{robotId}/sync-status`,
- method: 'get'
+ url: `/inspection/robot/${id}/sync-status`,
+ method: 'post'
})
}
diff --git a/src/views/inspection/robot/index.vue b/src/views/inspection/robot/index.vue
index 3464b11..414f917 100644
--- a/src/views/inspection/robot/index.vue
+++ b/src/views/inspection/robot/index.vue
@@ -46,6 +46,29 @@
+
+
+ {{ runtimeStatusLabel(row.status) }}
+
+
+
+
+
+
+
+ 尚未获取
+
+
+
+
+ {{ positionText(row.currentPosition) }}
+ 尚未获取AGV位姿
+
+
+
+ {{ row.currentMapName || row.robotMapName || '-' }}
+
{{ row.ipAddress }}:{{ row.port }}
@@ -69,8 +92,10 @@
{{ robotTypeLabel(row.robotType) }}
-
+
+ 状态
设备
编辑
归档
@@ -115,6 +140,8 @@
{{ endpointText(form) }}
{{ form.quicNodeId || '-' }}
+ {{ hasBattery(form) ? `${normalizeBattery(form.batteryLevel)}%` : '尚未获取' }}
+ {{ form.currentPosition ? positionText(form.currentPosition) : '尚未获取' }}
@@ -154,9 +181,9 @@