| | |
| | | eleform.submit();
|
| | | }
|
| | |
|
| | | |
| | | var isNewLoad = true;
|
| | | // 省-市-机房-电池组
|
| | | var filterLoad;
|
| | | $(document).ready(function(){
|
| | | filterLoad = layer.load();
|
| | | |
| | | var pre_province = getQueryString('province');
|
| | | //页面加载时查询维护区中的枢纽类型
|
| | | $.post("User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup",null,function(data){
|
| | | data=data.result;
|
| | |
| | | $option.html("<s:text name='All'/>(<s:text name='Common'/>"+data.data.length+"<s:text name='Species'/>)");
|
| | | $option.attr("value", "");
|
| | | }else{
|
| | | if(pre_province == data.data[i-1] && isNewLoad){
|
| | | $option.attr('selected',true);
|
| | | }
|
| | | $option.text(data.data[i-1]);
|
| | | $option.attr("value",data.data[i-1]);
|
| | | }
|
| | | $select.append($option);
|
| | | }
|
| | | }else{
|
| | | $("#station_name1").text('').html('<option>暂无管理的维护区</option>');
|
| | | $("#station_name1").text('').html('<option>暂无管理的省</option>');
|
| | | }
|
| | | findCity();
|
| | | });
|
| | |
| | | var data = {
|
| | | StationName1: $("#station_name1").val()
|
| | | };
|
| | | |
| | | var pre_city = getQueryString('city');
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | |
| | | var optsList = [];
|
| | | for(var i=0;i<_data.length;i++){
|
| | | var __data = _data[i];
|
| | | var tmp = getOptionsData(__data.StationName2, __data.StationName2, __data);
|
| | | var tmp = getOptionsData(__data.StationName2, __data.StationName2, __data,{});
|
| | | //console.info(pre_city + '=='+ __data.StationName2);
|
| | | if(pre_city == __data.StationName2 && isNewLoad){
|
| | | tmp = getOptionsData(__data.StationName2, __data.StationName2, __data,{},true);
|
| | | }
|
| | | optsList.push(tmp);
|
| | | }
|
| | | //console.info(optsList);
|
| | | // 根据数据生成下拉列表
|
| | | createOptions($select, optsList, true);
|
| | | }else {
|
| | |
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | |
| | | var pre_county = getQueryString('county');
|
| | | // 查询区县
|
| | | $.ajax({
|
| | | type: 'post',
|
| | |
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName5, __data.StationName5, __data, _attr);
|
| | | if(pre_county == __data.StationName5 && isNewLoad){
|
| | | tmp = getOptionsData(__data.StationName5, __data.StationName5, __data, _attr,{},true);
|
| | | }
|
| | | optsList.push(tmp);
|
| | | }
|
| | |
|
| | |
| | |
|
| | | //当维护区的值变换时更新机房站点
|
| | | $('#city').change(function(){
|
| | | findStationNamebyStationname1(true);
|
| | | findCounty(true);
|
| | | });
|
| | | |
| | | //当区/县的值变换时更新机房站点
|
| | | $('#county').change(function(){
|
| | | findCounty(true);
|
| | | findStationNamebyStationname1(true);
|
| | | });
|
| | |
|
| | | //根据省,市查询站点
|
| | |
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | var pre_home = getQueryString('home');
|
| | | //var selectvalue=$("#station_name1 option:selected").val();
|
| | | //alert(selectvalue);
|
| | | $.post("BattInfAction!serchStationName3","json="+JSON.stringify(tmp),function(data){
|
| | |
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName3, __data.StationName, __data, _attr);
|
| | | //console.info(pre_home +'=='+ __data.StationName);
|
| | | if(pre_home == __data.StationName && isNewLoad){
|
| | | tmp = getOptionsData(__data.StationName3, __data.StationName, __data, _attr,{},true);
|
| | | }
|
| | | optsList.push(tmp);
|
| | | }
|
| | | |
| | | //console.info(optsList);
|
| | | // 根据数据生成下拉列表
|
| | | createOptions($select, optsList, true);
|
| | | }else{
|
| | |
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | var pre_battid = getQueryString('battid');
|
| | | //var station_name1=$("#station_name1 option:selected").val();
|
| | | //var station_name=$("#station_name option:selected").val();
|
| | |
|
| | |
| | | };
|
| | | var txt = _data.BattGroupName+'-'+_data.MonCount+"<s:text name='Section'/>";
|
| | | var tmp = getOptionsData(txt, _data.BattGroupId, _data, _attr);
|
| | | if(pre_battid == _data.BattGroupId && isNewLoad){
|
| | | tmp = getOptionsData(txt, _data.BattGroupId, _data, _attr,{},true); |
| | | }
|
| | | optsList.push(tmp);
|
| | | }
|
| | |
|
| | |
| | | }else{
|
| | | $("#battgroup_name").text('').html('<option>暂无可测蓄电池组</option>');
|
| | | }
|
| | | |
| | | isNewLoad = false;
|
| | | layer.close(filterLoad);
|
| | | });
|
| | | }
|
| | |
| | | });
|
| | |
|
| | | createPictable();
|
| | | |
| | | //点击曲线选择复选框对表格内的复选框全部选中
|
| | | $('#tabEchartCon .tbFixed').on('click','table thead input',function(){
|
| | | if($(this).is(':checked'))
|
| | | { |
| | | console.info($('#tabEchartCon .secCured table tbody input[type="checkbox"]').length);
|
| | | $('#tabEchartCon .secCured table tbody input[type="checkbox"]').prop('checked',true);
|
| | | }else{
|
| | | console.info(false);
|
| | | $('#tabEchartCon .secCured table tbody input[type="checkbox"]').prop('checked',false);
|
| | | }
|
| | | });
|
| | | |
| | | $('#tabEchartCon .left .secCurve').on('click', 'input[type="checkbox"]', function(){
|
| | | createPicByTable();
|
| | | createMyTable(tbl_data);
|
| | | });
|
| | | |
| | | //生成曲线表格选项
|
| | | function createPictable(){
|
| | | var ArrLineTh=["<s:text name='BatteryID'/>","<input type='checkbox' checked='checked'/><s:text name='Curve_to_choose'/>"]; /* 电池组ID 曲线选择 */
|
| | |
| | | }
|
| | | createCard($('#tabEchartCon .tbFixed'),ArrLineTh,ArrLineTd);
|
| | | createCard($('#tabEchartCon .secCurve'),ArrLineTh,ArrLineTd);
|
| | | //点击曲线选择复选框对表格内的复选框全部选中
|
| | | $('#tabEchartCon .tbFixed').on('click','table thead input',function(){
|
| | | if($(this).is(':checked'))
|
| | | { |
| | | console.info($('#tabEchartCon .secCured table tbody input[type="checkbox"]').length);
|
| | | $('#tabEchartCon .secCured table tbody input[type="checkbox"]').prop('checked',true);
|
| | | }else{
|
| | | console.info(false);
|
| | | $('#tabEchartCon .secCured table tbody input[type="checkbox"]').prop('checked',false);
|
| | | }
|
| | | });
|
| | | $('#tabEchartCon .left .secCurve input[type="checkbox"]').click(function(){
|
| | | createPicByTable();
|
| | | createMyTable(tbl_data);
|
| | | });
|
| | | |
| | | setTblWidth($('#tabEchartCon .tbFixed'), $('#tabEchartCon .secCurve'));
|
| | | }
|
| | |
|
| | |
|
| | |
| | | binf:{
|
| | | StationName1:$('#station_name1').val(),
|
| | | StationName2:$('#city').val(),
|
| | | StationName5: $('#county').val(),
|
| | | StationName:$('#station_name').val(),
|
| | | BattGroupId:$('#battgroup_name').val(),
|
| | | BattProducer:$('#batt_producer').val(),
|