fengxiang
2018-02-07 7a0aeaea540803c0768c10c63ac5e78849f01c7a
src/main/webapp/view/map.jsp
@@ -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();
                                       if(_obj['mac']==null){
                                           alert("mac项未配置,请联系管理员设置");
                                           return;
                                       }
                                  var equ = {
                              name: _obj['name'],
                              mac: (_obj['mac']).toLowerCase(),
@@ -331,12 +341,6 @@
                                window['external'].showMonitorInfo(equStr);
                             }else{
                                alert(equStr);
                             }
                          }
                    obj['mouseover'] = function (type) {
                  if(type.target.getData()==null){
                            //当前设备数据为空时,设备悬停事件中 刷新一下数据
                            refreshAllState();
                  }
                    }
               var moralMask = new moralMap.Equipment(obj);