fyf hace 2 años
padre
commit
418692d1bd
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. +6
    -6
      DataVAPI/UpAndDown/ProcessServer.cs

+ 6
- 6
DataVAPI/UpAndDown/ProcessServer.cs Ver fichero

@@ -266,20 +266,20 @@ namespace DataVAPI.UpAndDown
if (receiveModel.status.value == "离线")
{
//离线移除并添加到最后一位
devModel.operatingDeviceStatus.data.Remove(dev);
devModel.operatingDeviceStatus.data.Add(dev);
index = devModel.operatingDeviceStatus.data.FindLastIndex(0, ar => ar.DeviceZT.Contains("在线"));
}
else
{
//在线 往上一点
index = devModel.operatingDeviceStatus.data.FindIndex(0, ar => ar.DeviceZT.Contains("离线"));
if (index > devModel.operatingDeviceStatus.data.Count - 1) index = devModel.operatingDeviceStatus.data.Count - 1;
int now = devModel.operatingDeviceStatus.data.IndexOf(dev);
Swap(devModel.operatingDeviceStatus.data, index, now);
}
int now = devModel.operatingDeviceStatus.data.IndexOf(dev);
Swap(devModel.operatingDeviceStatus.data, index, now);


}
else
{


Cargando…
Cancelar
Guardar