From 9b308cec4877349053777e39ae30cf0e3cef7f7e Mon Sep 17 00:00:00 2001 From: fyf Date: Sat, 7 May 2022 13:51:52 +0800 Subject: [PATCH] 222 --- BPASmartClient.IoT/DataVClient.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/BPASmartClient.IoT/DataVClient.cs b/BPASmartClient.IoT/DataVClient.cs index b7dddaac..1548f5c0 100644 --- a/BPASmartClient.IoT/DataVClient.cs +++ b/BPASmartClient.IoT/DataVClient.cs @@ -167,10 +167,12 @@ namespace BPASmartClient.IoT { DeviceId=device.DeviceId, Name=device.Name, - DeviceType=device.DeviceType, - IsBusy=device.IsBusy, - IsHealth=device.IsHealth, - Status=device.Status.GetStatus(), + DeviceType=device.DeviceType.ToString(), + IsBusy=device.IsBusy?"忙碌":"空闲", + IsBusyColor= device.IsBusy ? new ALYColor {r=255,g=0,b=0,a=1} : new ALYColor {r = 51, g = 232, b = 34, a = 1 }, + IsHealth =device.IsHealth?"健康":"故障", + IsHealthColor = !device.IsHealth ? new ALYColor { r = 255, g = 0, b = 0, a = 1 } : new ALYColor { r = 51, g = 232, b = 34, a = 1 }, + Status = device.Status.GetStatus(), }; dataVNode.data.Add(obj); });