| | |
| | | <link rel="stylesheet" href="css/BrdwMaint.css">
|
| | | <link rel="stylesheet" type="text/css" href="css/loading.css">
|
| | | <link rel="stylesheet" href="css/nocontent.css">
|
| | | <link rel="stylesheet" href="alifont/iconfont.css"> |
| | | <meta http-equiv="pragma" content="no-cache">
|
| | | <meta http-equiv="cache-control" content="no-cache">
|
| | | <meta http-equiv="expires" content="0">
|
| | |
| | | <script type="text/javascript" src="js/loading.js"></script>
|
| | | <script type="text/javascript" src="js/nocontent.js"></script>
|
| | | <script type="text/javascript" src="js/createTab.js"></script>
|
| | | <script type="text/javascript" src="pages/js/common.js"></script>
|
| | | <script type="text/javascript">
|
| | | var Page={
|
| | | pageCurr:1,
|
| | |
| | | var _attr = {
|
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName3, __data.StationName, __data, _attr);
|
| | | var tmp = getOptionsData(__data.StationName3, __data.StationName3, __data, _attr);
|
| | | optsList.push(tmp);
|
| | | }
|
| | | // 根据数据生成下拉列表
|
| | |
| | | $("#station_name3").text('').html('<option>暂无可测机房站点</option>');
|
| | |
|
| | | }
|
| | | |
| | | searchstationstate();
|
| | | });
|
| | | }
|
| | |
|
| | | //构造查询条件
|
| | | function createSearchParam(){
|
| | | //alert($('#endu_type').val());
|
| | | var stationid = $('#station_name3').find("option:selected").attr('Stationid');
|
| | | var temp = {
|
| | | page:{
|
| | | pageSize:$('#number').val(),
|
| | |
| | | },
|
| | | StationName1:$('#station_name1').val(), //市
|
| | | StationName2:$('#city').val(),
|
| | | StationName3:$('#station_name3').find("option:selected").text(), |
| | | StationId:$('#station_name3').find("option:selected").attr('Stationid'),
|
| | | StationName3:$('#station_name3').val(), |
| | | StationId: stationid?stationid:0,
|
| | |
|
| | | };
|
| | | console.info(temp);
|
| | | return temp;
|
| | | }
|
| | |
|
| | | function searchstationstate(){
|
| | | var temp = createSearchParam();
|
| | | var arrTd = new Array();
|
| | | arrTd = new Array();
|
| | | $.ajax({
|
| | | type: "post",
|
| | | url: "Bts_station_stateAction_action_serchByCondition",
|
| | |
| | | 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; //机房
|
| | | var _data = data[i];
|
| | | arrTd[index++]=_data.stationName1; //省
|
| | | arrTd[index++]=_data.stationName2; //市
|
| | | arrTd[index++]=_data.stationName3; //机房
|
| | |
|
| | | arrTd[index++]=data[0].station_stat_poff; //停电
|
| | | // 停电
|
| | | if(_data.station_stat_poff) {
|
| | | arrTd[index++]= create_ali_font('icon-tingdian-', 'red', {msg:'停电异常'});
|
| | | }else {
|
| | | arrTd[index++]= create_ali_font('icon-tingdian-', 'green', {msg: '正常'});
|
| | | }
|
| | |
|
| | | arrTd[index++]=data[0].station_poff_start_time //停电开始时间
|
| | | arrTd[index++]=_data.station_poff_start_time //停电开始时间
|
| | |
|
| | | arrTd[index++]=data[0].station_stat_fadian;//发电
|
| | | // 发电
|
| | | if(_data.station_stat_fadian) {
|
| | | arrTd[index++]= create_ali_font('icon-dynamotor', 'red', {msg: '发电异常'}); //发电
|
| | | }else {
|
| | | arrTd[index++]= create_ali_font('icon-dynamotor', 'green', {msg: '正常'}); //发电
|
| | | }
|
| | |
|
| | | arrTd[index++]=data[0].station_fadian_start_time;//发电开始时间
|
| | | arrTd[index++]=_data.station_fadian_start_time;//发电开始时间
|
| | |
|
| | | arrTd[index++]=data[0].station_stat_diaozhan;//掉站
|
| | | arrTd[index++]=data[0].station_diaozhan_start_time;//掉站开始时间
|
| | | // 掉站
|
| | | if(_data.station_stat_diaozhan) {
|
| | | arrTd[index++]= create_ali_font('icon-dianchi', 'red', {msg: '已掉站'});
|
| | | }else {
|
| | | arrTd[index++]= create_ali_font('icon-dianchi4', 'green', {msg: '正常'});
|
| | | }
|
| | |
|
| | | arrTd[index++]=data[0].station_stat_dooropen;//开门关门异常
|
| | | arrTd[index++]=data[0].station_dooropen_start_time;//开门关门异常时间
|
| | | arrTd[index++]=_data.station_diaozhan_start_time;//掉站开始时间
|
| | |
|
| | | arrTd[index++]=data[0].station_temp; //温度
|
| | | arrTd[index++]=data[0].station_damp; //湿度
|
| | | // 开门关门异常
|
| | | if(_data.station_stat_dooropen) {
|
| | | arrTd[index++] = create_ali_font('icon-quankaimen', 'red', {msg: '开门'});
|
| | | }else {
|
| | | arrTd[index++] = create_ali_font('icon-quankaimen', 'green', {msg: '关门'});
|
| | | }
|
| | | |
| | | arrTd[index++]=_data.station_dooropen_start_time;//开门关门异常时间
|
| | | |
| | | arrTd[index++]=_data.station_temp; //温度
|
| | | arrTd[index++]=_data.station_damp; //湿度
|
| | | }
|
| | | Page.pageAll = data.length;
|
| | | var pageNum=Math.ceil(Page.pageAll/Page.pageSize);
|
| | | $('#total').text(Page.pageAll);
|
| | | $('#current').text(Page.pageCurr+"/"+pageNum);
|
| | | createAllTbl(tblHd, tblBd, arrTh, arrTd, tblStatus);
|
| | | }
|
| | | }
|
| | |
| | | var ArrTd="";
|
| | | for(var i=0;i<eleTd.length;i++)
|
| | | {
|
| | | ArrTd+=eleTd.eq(i).text()+"&";
|
| | | var _index = (i+1)%eleTh.length;
|
| | | var _icon = eleTd.eq(i).find('.icon');
|
| | | if(_icon.length) {
|
| | | ArrTd+=eleTd.eq(i).find('.icon').data('msg')+"&";
|
| | | }else {
|
| | | ArrTd+=eleTd.eq(i).text()+"&";
|
| | | }
|
| | | }
|
| | | eleTh_Text.attr('value',ArrTh);
|
| | | eleTd_Text.attr('value',ArrTd);
|