From 6ca818de1f93c61ddfa92a3ce285280304c50927 Mon Sep 17 00:00:00 2001
From: hdw <496960745@qq.com>
Date: 星期三, 31 十月 2018 10:19:43 +0800
Subject: [PATCH] 电池信息配置

---
 gx_tieta/WebRoot/pages/js/common.js |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/gx_tieta/WebRoot/pages/js/common.js b/gx_tieta/WebRoot/pages/js/common.js
index 541f0b8..19ee467 100644
--- a/gx_tieta/WebRoot/pages/js/common.js
+++ b/gx_tieta/WebRoot/pages/js/common.js
@@ -331,6 +331,8 @@
 	// 灏嗗嚱鏁扮粦瀹氬埌GLOBAL.BaseStation
 	gl.BaseStation.getAbnormalTxt = getAbnormalTxt;
 	
+	
+	
 })(jQuery, window, document, GLOBAL);
 
 //椤甸潰涓鏃跺櫒鐨勪娇鐢�
@@ -448,6 +450,22 @@
 	gl.CMD.e61850.getDischargeParm = 41;				//鑾峰彇鍙傛暟
 })(jQuery, window, document, GLOBAL);
 
+// 鍦板浘淇℃伅
+;(function($, window, document, gl, undefined) {
+	// 瀹氫箟BMap鐨勫懡鍚嶇┖闂�
+	gl.namespace('BMap');
+	// 鍦板浘鍙鍖哄煙瀹氫箟
+	var mapViewArea = [
+	    {name: '涓浗',area:'涓浗', left: {lng:71.3822, lat:0.6212}, right: {lng: 139.526,lat:54.3093}},
+	    {name: '涓浗-骞胯タ',area: '骞胯タ鐪�' ,left: {lng:104.45675, lat:20.8744}, right: {lng: 112.068,lat:26.391}}
+	];
+	
+	// 灏嗗彉閲弇apView缁戝畾鍒癎LOBAL.BMap涓�
+	gl.BMap.mapViewArea = mapViewArea;
+	
+})(jQuery, window, document, GLOBAL);
+
+
 // 鐢熸垚闃块噷鍥炬爣鐨勫厓绱�
 function create_ali_font(cla, color, data) {
 	var i = $('<i class="icon iconfont"></i>');
@@ -463,3 +481,18 @@
 	var outerHTML = i[0].outerHTML;
 	return outerHTML;
 }
+//鐢熸垚闃块噷鍥炬爣鐨勫厓绱�
+function create_fa_font(cla, color, data) {
+	var i = $('<i class="fa"></i>');
+	i.addClass(cla);
+	i.css({
+		'color': color
+	});
+	Object.keys(data).forEach(function(key) {
+		var attr = 'data-'+key
+		i.attr(attr, data[key]);
+	});
+	// 鑾峰彇瀛楃涓�
+	var outerHTML = i[0].outerHTML;
+	return outerHTML;
+}

--
Gitblit v1.9.1