From 95df7a469e7b560ca3095cdebcdae477df2333c8 Mon Sep 17 00:00:00 2001
From: hdw <496960745@qq.com>
Date: 星期二, 27 十一月 2018 15:43:02 +0800
Subject: [PATCH] 机房续航不足数目显示

---
 gx_tieta/WebRoot/index.jsp |    1 -
 gx_tieta/WebRoot/Top.jsp   |   20 ++++++++++++++++++--
 2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/gx_tieta/WebRoot/Top.jsp b/gx_tieta/WebRoot/Top.jsp
index 93433a6..053cabe 100644
--- a/gx_tieta/WebRoot/Top.jsp
+++ b/gx_tieta/WebRoot/Top.jsp
@@ -221,7 +221,7 @@
 		searchpoweroff();			//鏌ヨ鏈烘埧鍋滅數鎬绘暟
 		searchdevalarm();			//鏌ヨ璁惧瀹炴椂鍛婅鎬绘暟
 		searchnotcomplan();			//鏌ヨ鏈斁鐢电殑璁″垝鎬绘暟
-		
+		searchWeakHome();			//鏌ヨ鏈烘埧缁埅涓嶈冻鐨勪釜鏁�
 		/* setInterval(function(){
 			searchlowmon();			//鏌ヨ钀藉悗鍗曚綋鎬绘暟
 			searchpoweroff();		//鏌ヨ鏈烘埧鍋滅數鎬绘暟
@@ -333,6 +333,23 @@
 		});
 	}
 	
+	// 鏈烘埧缁埅涓嶈冻涓暟
+	function searchWeakHome() {
+		$.ajax({
+			type: 'post'
+			,async: true
+			,url: 'Batt_enduranceAction!serchxuhangNotInThree'
+			,data: null
+			,dataType: 'json'
+			,success: function(res) {
+				var rs = JSON.parse(res.result);
+				$('#weak_home').text(rs.sum);
+				
+				setTimeout(searchWeakHome, 5000);
+			}
+		});
+	}
+	
 	
 	$(function(){
 		$.ajax({ 	
@@ -361,7 +378,6 @@
 	// 娣诲姞澶╂皵鎻掍欢鍜岀數姹犱俊鎭暱搴︽帶鍒�
 	$(function() {
 		limitWidth();
-		//addWeather();
 	});
 
 	// 闄愬埗鏄剧ず涓暟
diff --git a/gx_tieta/WebRoot/index.jsp b/gx_tieta/WebRoot/index.jsp
index c511404..4593492 100644
--- a/gx_tieta/WebRoot/index.jsp
+++ b/gx_tieta/WebRoot/index.jsp
@@ -2590,7 +2590,6 @@
 	        		var _data = data[i];
 	        		var _list =  formatUpdateStation(_data);
 	        		updateStationData.push(_list);
-	        		//_list.msg = 'item-nuclear_cap';
 	        		// 鍒ゆ柇鏄惁鏇存柊
 	        		if(mapPages.pageNew) {
 	        			bmap.updateDots(_list);

--
Gitblit v1.9.1