From db0bd262f7b07e43155db4e0fdf5c52e91610edf Mon Sep 17 00:00:00 2001 From: xufenglei <xufenglei> Date: Tue, 06 Mar 2018 14:11:31 +0800 Subject: [PATCH] 报表优化 --- src/main/webapp/view/map.jsp | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/view/map.jsp b/src/main/webapp/view/map.jsp index 0b02bf5..425eb41 100644 --- a/src/main/webapp/view/map.jsp +++ b/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(); + 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); } -- Gitblit v1.8.0