| | |
| | | } |
| | | |
| | | .list .state04 { |
| | | |
| | | background-color: #eee; |
| | | color: #777 |
| | | /*background-color: #eee;*/ |
| | | /*color: #777 ;*/ |
| | | background-color: #738d99 ; |
| | | } |
| | | /* |
| | | * 外面盒子样式---自己定义 |
| | |
| | | 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(), |
| | |
| | | alert(equStr); |
| | | } |
| | | } |
| | | obj['mouseover'] = function (type) { |
| | | if(type.target.getData()==null){ |
| | | //当前设备数据为空时,设备悬停事件中 刷新一下数据 |
| | | refreshAllState(); |
| | | } |
| | | } |
| | | var moralMask = new moralMap.Equipment(obj); |
| | | moralMap.addOverlay(moralMask); |
| | | } |