From 4a41bd4e105385b5460e5a81c8b67e5f701a262b Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Fri, 04 May 2018 08:55:13 +0800
Subject: [PATCH] 首页 工作台

---
 src/main/webapp/view/map.jsp |   42 +++++++++++++++++++++++++++++++-----------
 1 files changed, 31 insertions(+), 11 deletions(-)

diff --git a/src/main/webapp/view/map.jsp b/src/main/webapp/view/map.jsp
index 55f7a75..eaf7569 100644
--- a/src/main/webapp/view/map.jsp
+++ b/src/main/webapp/view/map.jsp
@@ -113,26 +113,31 @@
 	clear: both;
 	zoom: 1
 }
-
+.list-chart-span {
+	cursor: pointer;
+	background-color: #4c9bf1
+}
 .list li {
 	padding: 10px 0;
 	border-bottom: 1px dotted #eee;
 	line-height: 40px;
 	height: 40px;
 	font-size: 20px;
-	cursor: pointer;
+	/*cursor: pointer;*/
 }
 
 .list span{
 	float: right;
 	position: relative;
-	right: 18px;
+	right: 5px;
 	border-radius:4px;
-	width: 70px;
+	width: 40px;
 	text-align: center;
 	height: 24px;
 	line-height: 24px;
-	font-size: 16px;
+	font-size: 14px;
+	font-weight: bolder;
+	color:  white;
 	margin: 10px 0;
 	padding:2px 0;
 	margin-right: 8px;
@@ -144,6 +149,7 @@
 
 .list .state01 {
 	background-color: #FF9;
+    color: #ff7f00;
 }
 
 .list .state02 {
@@ -156,9 +162,9 @@
 }
 
 .list .state04 {
-
-	background-color: #eee;
-	color: #777
+	/*background-color: #eee;*/
+	/*color: #777 ;*/
+	background-color: #738d99 ;
 }
 			/*
 			  * ������������������---������������
@@ -314,14 +320,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){
@@ -368,6 +384,10 @@
 	//��������������������� ���������������,���������
 	moralMap.addEventListener("tilesloaded", function(type, target) {
 	});
+	// ������������������ ������������
+    moralMap.addEventListener("click", function(type, target) {
+        moralMap.closePopupbox("#popup_box");
+    });
 	//������������������������������������������
 	moralMap.addEventListener('zoomstart', function(type) {});
 	//������������������������������������������
@@ -410,7 +430,7 @@
          }
          setTimeout(function(){
             refreshAllState();
-         },2000);
+         },5000);
     }
     function stopRefreshPage(){
         window.clearInterval(_intervalNum);

--
Gitblit v1.8.0