|
@@ -2125,10 +2125,12 @@
|
|
|
for(var devcode in modelsMap){
|
|
|
//判断当前设备是否在在线设备列表中
|
|
|
//设备原来未接入,现在接入了才恢复正常颜色
|
|
|
- if(jsondata.indexOf(","+devcode+",")>-1 && OFFLINE_DEVS[devcode]!=null){
|
|
|
+ if(jsondata.indexOf(","+devcode+",")>-1){
|
|
|
//设备已接入
|
|
|
- ChangeModelColor(devcode); //恢复原颜色
|
|
|
- OFFLINE_DEVS[devcode]=null;
|
|
|
+ if(OFFLINE_DEVS[devcode]!=null){
|
|
|
+ ChangeModelColor(devcode); //恢复原颜色
|
|
|
+ OFFLINE_DEVS[devcode]=null;
|
|
|
+ }
|
|
|
}else{
|
|
|
if(OFFLINE_DEVS[devcode]==null){
|
|
|
//设备未接入
|