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('否') }} + + + + +