| | |
| | | iconList.append('<div class="clear"></div>');
|
| | | iconExplain.append(iconList);
|
| | |
|
| | | |
| | | |
| | | // 机房延时
|
| | | var iconList = $('<div class="explain-list" style="padding: 4px 6px; border-bottom: 1px slid #ccc; display:block"></div>');
|
| | | var input = $('<input type="checkbox" data-img="item-timeout" checked="checked">');
|
| | | var icon = $('<img src="'+mapImages.timeout+'">');
|
| | | var span = $('<span>电池组放电延时机房</span>');
|
| | | iconList.append(input);
|
| | | iconList.append(span);
|
| | | iconList.append(icon);
|
| | | iconExplain.append(iconList);
|
| | | |
| | | // 停电机房
|
| | | var iconList = $('<div class="explain-list" style="padding: 4px 6px; border-bottom: 1px slid #ccc; display:block"></div>');
|
| | | var input = $('<input type="checkbox" data-img="item-poff" checked="checked">');
|
| | | var icon = $('<img src="'+mapImages.powercut+'">');
|
| | | var span = $('<span>停电机房</span>');
|
| | | iconList.append(input);
|
| | | iconList.append(span);
|
| | | iconList.append(icon);
|
| | |
| | | function formatUpdateStation(list) {
|
| | | var obj = {};
|
| | | var data = list.data;
|
| | | console.log(list);
|
| | | //console.log(list);
|
| | | // GPS坐标转化为百度坐标
|
| | | var point = GPS.wgs2bd(data.latitude, data.longitude);
|
| | | // 构造结果集
|
| | |
| | | '<div style="padding:6px;"><span>地址:</span>'+data.data.Address+'</div>'+
|
| | | '<input type="hidden" class="ipt-hide home" value="'+data.data.StationName+'">'+
|
| | | '<input type="hidden" class="ipt-hide province" value="'+data.data.stationName1+'">'+
|
| | | '<input type="hidden" class="ipt-hide county" value="'+data.data.stationName5+'">'+ |
| | | '<input type="hidden" class="ipt-hide city" value="'+data.data.stationName2+'">';
|
| | |
|
| | | var list = {
|
| | |
| | | var home = $('.ipt-hide.home').val();
|
| | | var province = $('.ipt-hide.province').val();
|
| | | var city = $('.ipt-hide.city').val();
|
| | | window.open('control.jsp?province='+province+'&city='+city+'&home='+home);
|
| | | var county = $('.ipt-hide.county').val();
|
| | | var url = skipUrl('control.jsp',province,city,county,home);
|
| | | window.open(url);
|
| | | //window.open('control.jsp?province='+province+'&city='+city+'&home='+home);
|
| | | }
|
| | |
|
| | | // 定位到历史数据页面
|
| | |
| | | var home = $('.ipt-hide.home').val();
|
| | | var province = $('.ipt-hide.province').val();
|
| | | var city = $('.ipt-hide.city').val();
|
| | | window.open('charge-test.jsp?province='+province+'&city='+city+'&home='+home);
|
| | | var county = $('.ipt-hide.county').val();
|
| | | var url = skipUrl('charge-test.jsp',province,city,county,home);
|
| | | window.open(url);
|
| | | //window.open('charge-test.jsp?province='+province+'&city='+city+'&home='+home);
|
| | | }
|
| | |
|
| | | //定位到告警页面
|
| | | function loadToWarnPage() {
|
| | | var home = $('.ipt-hide.home').val();
|
| | | var province = $('.ipt-hide.province').val();
|
| | | var city = $('.ipt-hide.city').val();
|
| | | var county = $('.ipt-hide.county').val();
|
| | | var url = skipUrl('elewarn.jsp',province,city,county,home);
|
| | | window.open(url);
|
| | | // console.info($('.ipt-hide').val());
|
| | | var stationId = $('.ipt-hide').eq(1).val();
|
| | | window.open('elewarn.jsp?stationId='+stationId);
|
| | | //var stationId = $('.ipt-hide').eq(1).val();
|
| | | //window.open('elewarn.jsp?stationId='+stationId);
|
| | | }
|
| | |
|
| | | // 定位到落后单体页面
|
| | | function loadToBehindPage() {
|
| | | var home = $('.ipt-hide.home').val();
|
| | | var province = $('.ipt-hide.province').val();
|
| | | var city = $('.ipt-hide.city').val();
|
| | | var county = $('.ipt-hide.county').val();
|
| | | var url = skipUrl('taskplan.jsp',province,city,county,home);
|
| | | window.open(url);
|
| | | // console.info($('.ipt-hide').val());
|
| | | var stationId = $('.ipt-hide').eq(1).val();
|
| | | window.open('taskplan.jsp?stationId='+stationId);
|
| | | //var stationId = $('.ipt-hide').eq(1).val();
|
| | | //window.open('taskplan.jsp?stationId='+stationId);
|
| | | }
|
| | |
|
| | | // 定位到放电延时页面
|
| | | function loadToDischargeDelay() {
|
| | | var stationId = $('.ipt-hide').eq(1).val();
|
| | | window.open('dischargeplan.jsp?stationId='+stationId);
|
| | | var home = $('.ipt-hide.home').val();
|
| | | var province = $('.ipt-hide.province').val();
|
| | | var city = $('.ipt-hide.city').val();
|
| | | var county = $('.ipt-hide.county').val();
|
| | | var url = skipUrl('dischargeplan.jsp',province,city,county,home);
|
| | | window.open(url);
|
| | | |
| | | //var stationId = $('.ipt-hide').eq(1).val();
|
| | | //window.open('dischargeplan.jsp?stationId='+stationId);
|
| | | }
|
| | |
|
| | | // 定位到机房详细信息页面
|
| | |
| | | rs.devalarm = "User_ChartAction!serchByInfo?json={Chart_file:'"+user_logo+"',Chart_name:chart_dev_alarm}"; // 设备告警
|
| | | rs.precharge = "User_ChartAction!serchByInfo?json={Chart_file:'"+user_logo+"',Chart_name:chart_pre_charge}"; // 预充电
|
| | | rs.float = "User_ChartAction!serchByInfo?json={Chart_file:'"+user_logo+"',Chart_name:chart_online_charge}"; // 浮充
|
| | | rs.defaults = mapDefults;
|
| | | rs.powercut = "User_ChartAction!serchByInfo?json={Chart_file:'"+user_logo+"',Chart_name:chart_poff}";
|
| | | rs.defaults = "User_ChartAction!serchByInfo?json={Chart_file:'"+user_logo+"',Chart_name:chart_install}";
|
| | | return rs;
|
| | | }
|
| | | /* $(function(){
|
| | |
| | | case 'item-timeout': // 延时
|
| | | rs = imgs.timeout;
|
| | | break;
|
| | | case 'item-poff': // 停电
|
| | | rs = imgs.powercut;
|
| | | break;
|
| | | case 'item-dev_alarm': // 61850告警
|
| | | rs = imgs.devalarm;
|
| | | break;
|