| | |
| | | , '应急供电单体下限到', '市电恢复停止应急供电', '停止自动应急供电', '无法启动核容测试', '模块故障', '电池开路故障'];
|
| | | })(jQuery, window, document, GLOBAL);
|
| | |
|
| | | // 基站信息
|
| | | ;(function($, window, document, gl, undefined) {
|
| | | // 基站异常类型
|
| | | gl.namespace('BaseStation.Abnormal');
|
| | | //1:基站停电 2:基站续航 3:基站发电 4:基站开门 5:基站掉站 6:基站温度上限 7:基站温度下限 8:基站湿度上限 9:基站湿度下限 |
| | | var abnormal = ['全部(异常)', '基站停电', '基站续航', '基站发电', '基站开门', '基站掉站', '基站温度上限', '基站温度下限', '基站湿度上限', '基站湿度下限'];
|
| | | gl.BaseStation.Abnormal = abnormal;
|
| | | |
| | | |
| | | // 根据下标获取基站异常类型的文本值
|
| | | function getAbnormalTxt(num) {
|
| | | var rs = abnormal[num];
|
| | | if(rs == undefined) {
|
| | | alert('基站异常类型'+num+'不存在');
|
| | | rs = abnormal[0];
|
| | | }
|
| | | return rs;
|
| | | }
|
| | | // 将函数绑定到GLOBAL.BaseStation
|
| | | gl.BaseStation.getAbnormalTxt = getAbnormalTxt;
|
| | | |
| | | |
| | | |
| | | })(jQuery, window, document, GLOBAL);
|
| | |
|
| | | //页面中计时器的使用
|
| | | ;(function($, gl) {
|
| | | gl.namespace('Timer');
|
| | |
| | | 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}}
|
| | | ];
|
| | | |
| | | // 将变量mapView绑定到GLOBAL.BMap下
|
| | | gl.BMap.mapViewArea = mapViewArea;
|
| | | |
| | | })(jQuery, window, document, GLOBAL);
|
| | |
|
| | |
|
| | | // 生成阿里图标的元素
|
| | | function create_ali_font(cla, color) {
|
| | | function create_ali_font(cla, color, data) {
|
| | | var i = $('<i class="icon iconfont"></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;
|
| | | }
|
| | |
|
| | | //生成阿里图标的元素
|
| | | 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;
|
| | | }
|
| | |
|
| | | // 生成跳转的链接
|
| | | 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;
|
| | | } |