fengxiang
2018-03-07 25a897c4e2bfd1722b1ea53d0aba5df81fcacbfc
src/main/webapp/view/map.jsp
@@ -156,9 +156,9 @@
}
.list .state04 {
   background-color: #eee;
   color: #777
   /*background-color: #eee;*/
   /*color: #777 ;*/
   background-color: #738d99 ;
}
         /*
           * 外面盒子样式---自己定义
@@ -314,8 +314,18 @@
      for(var i in objs) {
            var obj = objs[i];
            if(moralMap.getEquipment(obj["mac"])==null){
                    obj['mouseover'] = function (type) {
                        if(type.target.getData()==null){
                            //当前设备数据为空时,设备悬停事件中 刷新一下数据
                            refreshAllState();
                        }
                    }
               obj['click'] = function(){
                           var _obj = this.getOption();
                                       var _obj = this.getOption();
                                       if(_obj['mac']==null){
                                           alert("mac项未配置,请联系管理员设置");
                                           return;
                                       }
                                  var equ = {
                              name: _obj['name'],
                              mac: (_obj['mac']).toLowerCase(),
@@ -333,12 +343,6 @@
                                alert(equStr);
                             }
                          }
                    obj['mouseover'] = function (type) {
                  if(type.target.getData()==null){
                            //当前设备数据为空时,设备悬停事件中 刷新一下数据
                            refreshAllState();
                  }
                    }
               var moralMask = new moralMap.Equipment(obj);
                   moralMap.addOverlay(moralMask);
            }