| | |
| | | });
|
| | | });
|
| | |
|
| | | //查询电池信息
|
| | | function searchBadBatt(){
|
| | | loadshow();
|
| | | var stationid = $("#station_name").find('option:selected').attr('stationid')?$("#station_name").find('option:selected').attr('stationid'):'';
|
| | | var temp = createSearchForm();
|
| | | console.info(stationid);
|
| | | /*var temp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | StationName5: $("#county").val(),
|
| | | StationName: $("#station_name").val(),
|
| | | StationId: stationid
|
| | | };*/
|
| | | //console.info(temp);
|
| | | var json = JSON.stringify(temp);
|
| | | //console.info(json);
|
| | | arrTd = new Array();
|
| | | $.post("Batt_Maint_DealarmAction_serchByConditionNew","result="+json,function(data){
|
| | | data=eval("("+data.result+")");
|
| | | //console.info(data);
|
| | | if(data.code==1 && data.data.length>0){
|
| | | data=data.data;
|
| | | //console.info(data); |
| | | arr=new Array();
|
| | | index=0;
|
| | | for(var i=0;i<data.length;i++){
|
| | | Page.pageAll=data[i].Size;
|
| | | arr[index++]=data[i].BattGroupId; //电池组id
|
| | | arr[index++]=data[i].StationName; //机房名称
|
| | | arr[index++]=data[i].StationIp; //机房IP
|
| | | arr[index++]=data[i].BattGroupName; //电池组名称
|
| | | arr[index++]=data[i].BattGroupNum; //电池组序号
|
| | | |
| | | }
|
| | | //console.info(Page);
|
| | | createTbl(tbl, arrTh, arr);
|
| | | |
| | | }else{
|
| | | $('#searchNull').popup('open');
|
| | | Page.pageAll = 0;
|
| | | }
|
| | | setPage();
|
| | | //console.info(Page);
|
| | | loadclose(); |
| | | }).error(function(){
|
| | | loadclose();
|
| | | $('#searchErr').popup('open');
|
| | | });
|
| | | |
| | | }
|
| | |
|
| | |
|
| | |
|
| | | function createSearchForm(){
|
| | | var temp={
|
| | | page:{
|
| | | pageCurr:Page.pageCurr,
|
| | | pageSize:Page.pageSize,
|
| | | },
|
| | | binf:{
|
| | | StationName1:$('#mainteArea').val(),
|
| | | StationName2:$('#city').val(),
|
| | | StationName5:$('#country').val(),
|
| | | StationName:$('#homeName').val()
|
| | | |
| | | |
| | | },
|
| | | |
| | | |
| | | |
| | | var stationid = $('#homeName').find("option:selected").attr('Stationid');
|
| | | |
| | | var temp = { |
| | | page:{
|
| | | pageCurr:Page.pageCurr,
|
| | | pageSize:Page.pageSize,
|
| | | }, |
| | | StationName1:$('#mainteArea').val(), // 省
|
| | | StationName2:$('#city').val(), // 市
|
| | | StationName5:$('#county').val(), // 区/县 |
| | | StationName3:$('#homeName').val(), |
| | | StationId: stationid?stationid:0,
|
| | | //BattGroupNum:battgroupid,
|
| | | };
|
| | | return temp;
|
| | | }
|