浏览代码

34343

master
fyf 2 年前
父节点
当前提交
418692d1bd
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. +6
    -6
      DataVAPI/UpAndDown/ProcessServer.cs

+ 6
- 6
DataVAPI/UpAndDown/ProcessServer.cs 查看文件

@@ -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
{


正在加载...
取消
保存