优化数组等显示
This commit is contained in:
parent
fd11bc5747
commit
4d28d5c5b0
@ -97,8 +97,8 @@ namespace IoTGateway.ViewModel.BasicData.DeviceVariableVMs
|
||||
var DapThread = deviceService.DeviceThreads.Where(x => x._device.ID == item.DeviceId).FirstOrDefault();
|
||||
if (DapThread?.DeviceValues != null && DapThread.DeviceValues.ContainsKey(item.ID))
|
||||
{
|
||||
item.Value = DapThread.DeviceValues[item.ID].Value?.ToString();
|
||||
item.CookedValue = DapThread.DeviceValues[item.ID].CookedValue?.ToString();
|
||||
item.Value = JsonConvert.SerializeObject(DapThread.DeviceValues[item.ID].Value);
|
||||
item.CookedValue = JsonConvert.SerializeObject(DapThread.DeviceValues[item.ID].CookedValue);
|
||||
item.State = DapThread.DeviceValues[item.ID].StatusType.ToString();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user