From 25a897c4e2bfd1722b1ea53d0aba5df81fcacbfc Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Wed, 07 Mar 2018 10:55:27 +0800 Subject: [PATCH] 地图相关资源 --- src/main/webapp/view/map.jsp | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/view/map.jsp b/src/main/webapp/view/map.jsp index 55f7a75..973baea 100644 --- a/src/main/webapp/view/map.jsp +++ b/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,14 +314,24 @@ 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(), longitude: _obj['longitude'], latitude: _obj['latitude'], - version:moralMap.getVersion(_obj['mac']) + version:_obj['deviceVersion']['version'] } var equStr = JSON.stringify(equ); if(window["console"]!=undefined){ @@ -410,7 +420,7 @@ } setTimeout(function(){ refreshAllState(); - },2000); + },5000); } function stopRefreshPage(){ window.clearInterval(_intervalNum); -- Gitblit v1.8.0