From 3794e6477b837ffc295882a71ce3e49506009241 Mon Sep 17 00:00:00 2001 From: xudan Date: Thu, 4 Dec 2025 17:39:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(types):=20=E5=B0=86=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E9=97=A8=E7=82=B9=E7=B1=BB=E5=9E=8B=E6=A0=87=E8=AF=86=E4=BB=8E?= =?UTF-8?q?99=E7=BB=9F=E4=B8=80=E6=9B=B4=E6=96=B0=E4=B8=BA101=E4=BB=A5?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E6=96=B0=E7=9A=84=E8=AE=BE=E5=A4=87=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/movement-supervision.vue | 4 ++-- src/services/auto-door-simulation.service.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/movement-supervision.vue b/src/pages/movement-supervision.vue index cfb714c..df2bf65 100644 --- a/src/pages/movement-supervision.vue +++ b/src/pages/movement-supervision.vue @@ -334,7 +334,7 @@ const monitorScene = async () => { const data = JSON.parse(e.data || '{}'); // 判断数据类型:type=99为自动门点,其他为机器人 - if (data.type === 99) { + if (data.type === 101) { // 自动门点数据处理 autoDoorSimulationService.handleWebSocketData(data as AutoDoorWebSocketData); } else { @@ -396,7 +396,7 @@ const monitorScene = async () => { id: mockDeviceId, label: mockDeviceId, brand: null, - type: 99, + type: 101, ip: null, battery: 100, isConnected: mockIsConnected, diff --git a/src/services/auto-door-simulation.service.ts b/src/services/auto-door-simulation.service.ts index 2f50da4..fdfd199 100644 --- a/src/services/auto-door-simulation.service.ts +++ b/src/services/auto-door-simulation.service.ts @@ -55,7 +55,7 @@ interface AutoDoorStatusData { brand: null; - type: 99; // 自动门点类型标识 + type: 101; // 自动门点类型标识 ip: null; @@ -107,7 +107,7 @@ export interface AutoDoorWebSocketData { brand: null; - type: 99; // 自动门点类型标识 + type: 101; // 自动门点类型标识 ip: null; @@ -629,7 +629,7 @@ export class AutoDoorService { brand: null, - type: 99, + type: 101, ip: null,