解决设备未启动页面报错的问题
This commit is contained in:
parent
267a87fed2
commit
66a2954438
@ -45,10 +45,12 @@ namespace IoTGateway.ViewModel.BasicData.DeviceVariableVMs
|
||||
foreach (var item in device.Children)
|
||||
{
|
||||
var deviceThread = deviceService.DeviceThreads.Where(x => x._device.ID.ToString() == (string)item.Value).FirstOrDefault();
|
||||
if (deviceThread != null)
|
||||
item.Icon = deviceThread._device.AutoStart ? (deviceThread._driver.IsConnected ? "layui-icon-link" : "layui-icon-unlink") : "layui-icon-pause";
|
||||
|
||||
item.Text = item.Text;
|
||||
item.Icon = deviceThread._device.AutoStart ? (deviceThread._driver.IsConnected ? "layui-icon-link" : "layui-icon-unlink") : "layui-icon-pause";
|
||||
item.Expended = true;
|
||||
|
||||
}
|
||||
}
|
||||
DevicesTree = GetLayuiTree(AllDevices);
|
||||
|
Binary file not shown.
BIN
iotgateway.db
BIN
iotgateway.db
Binary file not shown.
Loading…
Reference in New Issue
Block a user