From 1229c0030c8bb76ee89b9c08c074315b4bbfd44a Mon Sep 17 00:00:00 2001
From: 81041 <81041@192.168.10.9>
Date: 星期一, 26 十一月 2018 15:16:54 +0800
Subject: [PATCH] 首页上电池告警率加入容量更换和容量告警告警
---
gx_tieta/WebRoot/index.jsp | 30 ++++++++++++++++++++++++++----
1 files changed, 26 insertions(+), 4 deletions(-)
diff --git a/gx_tieta/WebRoot/index.jsp b/gx_tieta/WebRoot/index.jsp
index e7640d6..e54a08e 100644
--- a/gx_tieta/WebRoot/index.jsp
+++ b/gx_tieta/WebRoot/index.jsp
@@ -1564,6 +1564,9 @@
mapEle.parent().append(iconExplain);
+ // 缁熻鏈烘埧鐘舵�佷釜鏁�
+ updateMapIconBadge();
+
// 璁剧疆鍦板浘鍥炬爣绉嶇被
setMapImgStyles();
}
@@ -1617,7 +1620,7 @@
iconList.append(span);
iconList.append(icon);
iconList.append(badge);
- //iconExplain.append(iconList);
+ iconExplain.append(iconList);
// 鏈烘埧寤舵椂
var iconList = $('<div class="explain-list" style="padding: 4px 6px; border-bottom: 1px slid #ccc; display:block"></div>');
@@ -1650,7 +1653,7 @@
iconList.append(input);
iconList.append(span);
iconList.append(icon);
- iconList.append(badge);
+ //iconList.append(badge);
iconExplain.append(iconList);
// 缁埅涓嶈冻3灏忔椂鏈烘埧
@@ -1664,8 +1667,6 @@
iconList.append(icon);
iconList.append(badge);
//iconExplain.append(iconList);
-
-
}
// 鏇存柊鍦板浘鍥炬爣badge鐨勫��
@@ -1677,6 +1678,27 @@
var powercut = mapImgDesc.find('.badge-powercut'); // 鍋滅數鏈烘埧
var normal = mapImgDesc.find('.badge-normal'); // 姝e父鏈烘埧
var weak = mapImgDesc.find('.badge-weak'); // 缁埅涓嶈冻3灏忔椂鏈烘埧
+ console.log(warn.length);
+ // 璇锋眰鍚庡彴鏁版嵁
+ $.ajax({
+ type: 'post'
+ ,async: true
+ ,url: 'Bts_station_stateAction_action_serchStationState'
+ ,data: null
+ ,dataType: 'json'
+ ,success:function(res) {
+ var rs = JSON.parse(res.result);
+ //console.log(rs);
+ powercut.text(rs.sum); // 鍋滅數鏁�
+ down.text(rs.code); // 鎺夌珯鏁�
+ behind.text(rs.msgN); // 钀藉悗鏈烘埧
+ warn.text(rs.msg); // 鍛婅鏈烘埧
+
+ /* var normalNum = Number(rs.newsum) - (Number(rs.sum)+Number(rs.code)+Number(rs.msgN)+Number(rs.msg));
+ normal.text(normalNum); */ // 姝e父鏈烘埧
+ }
+ });
+
}
--
Gitblit v1.9.1