From 30fd57f9bae8c05e99f85c41efdcb14b52c29d29 Mon Sep 17 00:00:00 2001 From: 81041 <81041@192.168.10.23> Date: 星期四, 01 十一月 2018 16:15:09 +0800 Subject: [PATCH] Merge branch 'dev_lxw' of https://whyclxw1@gitlab.com/whyclxw1/gx_tieta.git into dev_lxw --- gx_tieta/WebRoot/pages/js/common.js | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-) diff --git a/gx_tieta/WebRoot/pages/js/common.js b/gx_tieta/WebRoot/pages/js/common.js index cfd0a9f..a690ea9 100644 --- a/gx_tieta/WebRoot/pages/js/common.js +++ b/gx_tieta/WebRoot/pages/js/common.js @@ -450,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>'); @@ -465,6 +481,7 @@ var outerHTML = i[0].outerHTML; return outerHTML; } + //鐢熸垚闃块噷鍥炬爣鐨勫厓绱� function create_fa_font(cla, color, data) { var i = $('<i class="fa"></i>'); @@ -480,3 +497,28 @@ var outerHTML = i[0].outerHTML; return outerHTML; } + +// 鐢熸垚璺宠浆鐨勯摼鎺� +function skipUrl(page, province, city, county, home,battid,monnum) { + var str = page+'?'; + if(province){ + str += '&province='+province; + } + if(city){ + str +='&city='+city; + } + if(county){ + str += '&county='+county; + } + if(home){ + str += '&home='+home; + } + if(battid){ + str += '&battid='+battid; + } + if(monnum){ + str += '&monnum'+monnum; + } + //var str = page+'?province='+province+'&city='+city+'&county='+county+'&home='+home; + return str; +} \ No newline at end of file -- Gitblit v1.9.1