From e2221f2139b84f6ca9a999e0920d46817be6d553 Mon Sep 17 00:00:00 2001 From: xudan Date: Fri, 8 Aug 2025 15:08:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=BD=BD=E8=B4=A7?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=AD=97=E6=AE=B5=E8=87=B3RobotInfo=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=EF=BC=8C=E5=B9=B6=E5=9C=A8=E6=9C=BA=E5=99=A8=E4=BA=BA?= =?UTF-8?q?=E8=AF=A6=E7=BB=86=E5=8D=A1=E7=89=87=E4=B8=AD=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E8=BD=BD=E8=B4=A7=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/robot/type.ts | 1 + src/components/card/robot-detail-card.vue | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/apis/robot/type.ts b/src/apis/robot/type.ts index 160c5f4..e27ca2e 100644 --- a/src/apis/robot/type.ts +++ b/src/apis/robot/type.ts @@ -23,6 +23,7 @@ export interface RobotInfo { canStop?: boolean; // 急停状态 canControl?: boolean; // 控制状态 targetPoint?: string; // 目标点位(名称) + isLoading?: 0 | 1; // 载货状态:1载货,0空载(实时数据透传) } export interface RobotDetail extends RobotInfo { diff --git a/src/components/card/robot-detail-card.vue b/src/components/card/robot-detail-card.vue index a5971ff..2faead0 100644 --- a/src/components/card/robot-detail-card.vue +++ b/src/components/card/robot-detail-card.vue @@ -66,6 +66,10 @@ const stateDot = computed(() => `state-${robot.value?.state}`); {{ $t('接单状态') }} {{ $t(robot.canOrder ? '接单' : '不可接单') }} + + {{ $t('载货状态') }} + {{ $t(robot.isLoading === 1 ? '载货' : '空载') }} + {{ $t('急停状态') }} {{ $t(robot.canStop ? '是' : '否') }}