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 ? '是' : '否') }}