From b55dae256f055e685a1e852f0137daf701156d2b Mon Sep 17 00:00:00 2001 From: xudan Date: Mon, 28 Jul 2025 18:05:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=90=AF=E7=94=A8?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=AD=97=E6=AE=B5=E5=88=B0=E5=81=9C=E9=9D=A0?= =?UTF-8?q?=E7=82=B9=E6=8E=A5=E5=8F=A3=EF=BC=8C=E6=9B=B4=E6=96=B0=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E7=BB=84=E4=BB=B6=E4=BB=A5=E6=94=AF=E6=8C=81=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E7=8A=B6=E6=80=81=E7=9A=84=E6=98=BE=E7=A4=BA=E5=92=8C?= =?UTF-8?q?=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/map/type.ts | 1 + src/apis/scene/type.ts | 1 + src/components/card/point-detail-card.vue | 4 ++++ src/components/card/point-edit-card.vue | 14 ++++++++++++ src/services/editor.service.ts | 27 ++++++++++++++++++----- 5 files changed, 42 insertions(+), 5 deletions(-) diff --git a/src/apis/map/type.ts b/src/apis/map/type.ts index 7489331..786cf95 100644 --- a/src/apis/map/type.ts +++ b/src/apis/map/type.ts @@ -30,6 +30,7 @@ export interface MapPointInfo { isForbidAvoid?: boolean; // 是否禁止避让 associatedStorageLocations?: string[]; // 库位名称 deviceId?: string; // 设备ID + enabled?: 0 | 1; // 是否启用(仅停靠点使用,0=禁用,1=启用) } //#endregion diff --git a/src/apis/scene/type.ts b/src/apis/scene/type.ts index 930e7cf..61527e7 100644 --- a/src/apis/scene/type.ts +++ b/src/apis/scene/type.ts @@ -45,6 +45,7 @@ export interface StandardScenePoint { config?: object; // 其它属性配置(可按需增加) properties?: unknown; // 附加数据(前端不做任何处理) deviceId?: string; // 设备ID + enabled?: 0 | 1; // 是否启用(仅停靠点使用,0=禁用,1=启用) } export interface StandardSceneRoute { id: string; diff --git a/src/components/card/point-detail-card.vue b/src/components/card/point-detail-card.vue index 8004804..98b55b4 100644 --- a/src/components/card/point-detail-card.vue +++ b/src/components/card/point-detail-card.vue @@ -123,6 +123,10 @@ const getStorageStatusTag = (location: StorageLocationInfo) => { {{ bindRobot || $t('暂无') }} + + {{ $t('启用状态') }} + {{ point.enabled === 1 ? $t('已启用') : $t('已禁用') }} + {{ $t('绑定动作点') }} diff --git a/src/components/card/point-edit-card.vue b/src/components/card/point-edit-card.vue index bb0eca5..1e10c72 100644 --- a/src/components/card/point-edit-card.vue +++ b/src/components/card/point-edit-card.vue @@ -198,6 +198,20 @@ function onChangeLocation(i: number, v: string) { + + + + + {{ $t('是') }} + {{ $t('否') }} + + + + +