| | |
| | | </select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="station_name" name="stationname">
|
| | | <select id="station_name3" name="stationname">
|
| | |
|
| | | </select>
|
| | | </td>
|
| | |
| | |
|
| | | $('#paging .search').click(function() {
|
| | |
|
| | | searchstationstate();
|
| | | //noContent.showNoContent(); //显示查询失败框
|
| | |
|
| | | });
|
| | |
| | |
|
| | | // 省-市-机房-电池组
|
| | | $(document).ready(function(){
|
| | | //页面加载时查询维护区中的枢纽类型
|
| | | //页面加载时查询省
|
| | | $.post("User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup",null,function(data){
|
| | | data=data.result;
|
| | | data=eval("("+data+")");
|
| | |
| | | var rs = JSON.parse(data.result);
|
| | | if(rs.code==1){
|
| | | var _data = rs.data;
|
| | | var $select = $("#station_name");
|
| | | var $select = $("#station_name3");
|
| | | // 根据数据构造生成下拉列表的数据
|
| | | var optsList = [];
|
| | | //console.info(_data[0]);
|
| | | for(var i=0;i<_data.length;i++){
|
| | | /* if(i==0){
|
| | | $select.html("<s:text name='All'/>(<s:text name='Common'/>"+data.length+"<s:text name='Species'/>)"); |
| | | $select.attr("value","");
|
| | | }else{
|
| | | $select.text(_data[i-1].StationName3);
|
| | | $select.attr("value",_data[i-1].StationId); |
| | | }*/
|
| | | var __data = _data[i];
|
| | | var _attr = {
|
| | | StationId: __data.StationId
|
| | |
| | | var tmp = getOptionsData(__data.StationName3, __data.StationName, __data, _attr);
|
| | | optsList.push(tmp);
|
| | | }
|
| | | |
| | | // 根据数据生成下拉列表
|
| | | createOptions($select, optsList, true);
|
| | | }else{
|
| | | $("#station_name").text('').html('<option>暂无可测机房站点</option>');
|
| | | $("#station_name3").text('').html('<option>暂无可测机房站点</option>');
|
| | | |
| | | }
|
| | | });
|
| | | }
|
| | |
| | | function createSearchParam(){
|
| | | //alert($('#endu_type').val());
|
| | | var temp = {
|
| | | num:3, //电池状态
|
| | | BattGroupId:$("#endu_type").val(), //查询数据 |
| | | StationName:$('#station_name').val(), //机房名
|
| | | StationName2:$('#city').val(), //市
|
| | | StationName1:$('#station_name1').val(), //维护区
|
| | | BattProductDate:$('#starttime').val()+" 00:00:00",
|
| | | BattProductDate1:$('#endtime').val()+" 23:59:59", //生产日期段
|
| | | page:{
|
| | | pageSize:$('#number').val(),
|
| | | pageCurr:Page.pageCurr,
|
| | | }, |
| | | StationName1:$('#station_name1').val(), //市
|
| | | StationName2:$('#city').val(), |
| | | StationName3:$('#station_name3').find("option:selected").text(), |
| | | StationId:$('#station_name3').find("option:selected").attr('Stationid'),
|
| | | |
| | | };
|
| | | //console.info(temp);
|
| | | console.info(temp);
|
| | | return temp;
|
| | | }
|
| | | |
| | |
|
| | | function searchstationstate(){
|
| | | var temp = createSearchParam();
|
| | | var arrTd = new Array();
|
| | | $.ajax({
|
| | | type: "post",
|
| | | url: "Bts_station_stateAction_action_serchByCondition",
|
| | | async:true,
|
| | | dataType:'json',
|
| | | data:"json = "+JSON.stringify(temp),
|
| | | success: function(data){
|
| | | //console.info(data);
|
| | | var index = 0;
|
| | | var data = JSON.parse(data.result);
|
| | | if(data.code==1&&data.data!=null){
|
| | | console.info(data.data);
|
| | | var data = data.data;
|
| | | //console.info(data[0].dev_id);
|
| | | for(i=0;i<data.length;i++){
|
| | | arrTd[index++]=data[0].stationName1; //省
|
| | | arrTd[index++]=data[0].stationName2; //市
|
| | | arrTd[index++]=data[0].stationName3; //机房
|
| | | |
| | | arrTd[index++]=data[0].station_stat_poff; //停电
|
| | | |
| | | arrTd[index++]=data[0].station_poff_start_time //停电开始时间
|
| | | |
| | | arrTd[index++]=data[0].station_stat_fadian;//发电
|
| | | |
| | | arrTd[index++]=data[0].station_fadian_start_time;//发电开始时间
|
| | | |
| | | arrTd[index++]=data[0].station_stat_diaozhan;//掉站
|
| | | arrTd[index++]=data[0].station_diaozhan_start_time;//掉站开始时间
|
| | | |
| | | arrTd[index++]=data[0].station_stat_dooropen;//开门关门异常
|
| | | arrTd[index++]=data[0].station_dooropen_start_time;//开门关门异常时间
|
| | | |
| | | arrTd[index++]=data[0].station_temp; //温度
|
| | | arrTd[index++]=data[0].station_damp; //湿度
|
| | | }
|
| | | createAllTbl(tblHd, tblBd, arrTh, arrTd, tblStatus);
|
| | | }
|
| | | }
|
| | | }) |
| | | }
|
| | | |
| | | |
| | | |
| | | //首页
|
| | | $('#home').click(function(){
|
| | | if(Page!=undefined){
|