| | |
| | | }
|
| | | .operat-but{
|
| | | margin: 0;
|
| | | padding-top: 0.7em;
|
| | | padding-bottom: 0.7em;
|
| | | padding-top: 0.1em;
|
| | | padding-bottom: 0.1em;
|
| | | }
|
| | | </style>
|
| | | <link rel="stylesheet" href="css/fgpanel.css">
|
| | |
| | | </div>
|
| | | <div data-role="popup" id="myPopup" class="ui-content" data-overlay-theme="b">
|
| | | <a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn ui-icon-delete ui-btn-icon-notext ui-btn-right">关闭</a>
|
| | | <a href="batt-infor-conf-temp.html" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ui-icon-edit" >修改</a>
|
| | | <a href="" id="edit" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ui-icon-edit" >修改</a>
|
| | |
|
| | | <a href="batt-infor-delete.html" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ui-icon-forbidden" data-icon="delete">删除</a>
|
| | | <a href="" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ui-icon-forbidden" data-icon="delete">删除</a>
|
| | | </div>
|
| | | </div>
|
| | | </body>
|
| | |
| | | var arr=new Array(); //当前表格td数据
|
| | | var tblCon = $('.tbl-container');
|
| | | var Page = {
|
| | | pageSize:10, //每页的行数
|
| | | pageSize:20, //每页的行数
|
| | | pageCurr:1, //当前页码数
|
| | | pageAll:0,
|
| | | };
|
| | |
|
| | | $('document').ready(function(){panel.show();});
|
| | | |
| | | $("#edit").click(function(){
|
| | | window.location.href="batt-infor-conf-temp.html"; |
| | | });
|
| | | var arrTh = [ '机房编号', '省', '城市','区县','机房名称','设备名称','机房IP','FBS设备ID(重要)','FBS设备IP(重要)','子网掩码','网关','FBS设备名称','FBS电池索引(0-3)','电池组ID','机房内电池组编号','电池组名称','浮充电压阀值(V)','离线电压阀值(V)','浮充电流阀值(A)','单体数量','标称容量(AH)','标称单体电压(V)','标称单体内阻(mΩ)','标称单体电导','单体电压次低偏移量(V)','负载电流(A)','最大核容电流(A)','基站号码','电池品牌','电池型号','电池生产日期','投入使用日期','安装人员','配置操作'];
|
| | | dataArr = [];
|
| | | var startTime = "1980-01-01";
|
| | |
| | | function searchBattLife(){
|
| | | var temp = createSearchParam();
|
| | | var json = JSON.stringify(temp);
|
| | | console.info(json);
|
| | | arrTd = new Array();
|
| | | var load;
|
| | | /*if() {
|
| | | load = layer.load(1);
|
| | | }*/
|
| | | $.ajax({
|
| | | type:"post",
|
| | | url:"",
|
| | | url:"BattInfAction!searchInform",
|
| | | async:true,
|
| | | datatype:'json',
|
| | | datatype:'text',
|
| | | data:"json="+json,
|
| | | success:function(data){
|
| | | //console.info(data);
|
| | | //var data = JSON.parse(data.result); |
| | | var data = JSON.parse(data.result); |
| | | //layer.close(load);
|
| | | console.info(data);
|
| | | if(data.code==1&&data.data.length>0){
|
| | | data=data.data;
|
| | | var index = 0;
|
| | | var ArryTb= new Array();
|
| | | for(i=0;i<data.length;i++){
|
| | | arrTd[index++]=data[i].deviceId;
|
| | | arrTd[index++]=data[i].stationName;
|
| | | arrTd[index++]=data[i].real_cap;
|
| | | arrTd.push(data[i].StationId); //机房编号
|
| | | arrTd.push(data[i].StationName1); // 省
|
| | | arrTd.push(data[i].StationName2); // 市
|
| | | arrTd.push(data[i].StationName5); // 区/县
|
| | | arrTd.push(data[i].StationName3); //机房名称
|
| | | arrTd.push(data[i].StationName4); //设备名称
|
| | | arrTd.push(data[i].StationIp); //机房ip
|
| | | arrTd.push(data[i].FBSDeviceId); //FBS设备ID
|
| | | arrTd.push(data[i].FbsDeviceIp); //FBS设备IP
|
| | | arrTd.push(data[i].FbsDeviceIp_YM); //子网掩码
|
| | | arrTd.push(data[i].FbsDeviceIp_WG); //网关
|
| | | arrTd.push(data[i].FBSDeviceName); //FBS设备名称
|
| | | arrTd.push(data[i].GroupIndexInFBSDevice); //FBS设备索引
|
| | | arrTd.push(data[i].BattGroupId); //电池组ID
|
| | | arrTd.push(data[i].BattGroupNum); //机房内电池组编号
|
| | | arrTd.push(data[i].BattGroupName); //电池组名称
|
| | | arrTd.push(data[i].FloatVolLevel); //浮充电压阀值
|
| | | arrTd.push(data[i].OfflineVolLevel); //离线电压阀值
|
| | | arrTd.push(data[i].BattFloatCurrent); //浮充阀值
|
| | | arrTd.push(data[i].MonCount); //单体数量
|
| | | arrTd.push(data[i].MonCapStd); //标称容量
|
| | | arrTd.push(data[i].MonVolStd); //标称单体电压
|
| | | arrTd.push(data[i].MonResStd); //标称单体内阻
|
| | | arrTd.push(data[i].MonSerStd); //标称单体电导
|
| | | arrTd.push(data[i].MonVolLowToAvg); //单体电压次低偏移量
|
| | |
|
| | | //arrTd[index++]=data[i].is_out_stand;
|
| | | arrTd.push(data[i].Load_curr); //负载电流
|
| | | arrTd.push(data[i].DisCurrMax); //最大核容电流
|
| | | arrTd.push(data[i].station_phone); //基站手机号码
|
| | | |
| | | |
| | | arrTd.push(data[i].BattProducer); //电池品牌
|
| | | arrTd.push(data[i].BattModel); //电池型号
|
| | | arrTd.push(data[i].BattProductDate.substr(0,10)); //电池生产日期
|
| | | arrTd.push(data[i].BattInUseDate.substr(0,10)); //投入使用日期
|
| | | arrTd.push(data[i].install_user); // 设备安装人员
|
| | | /* arrTd.push("");
|
| | | arrTd.push("");
|
| | | arrTd.push(model.data[i].StationId_ex); //投入使用日期 */
|
| | | arrTd.push('<a href="#myPopup" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window" >修改或删除</a>');
|
| | | Page.pageAll = data[i].num;
|
| | | }
|
| | | Page.pageAll = data[data.length-1].page.pageAll;
|
| | | |
| | | }else{
|
| | | Page.pageAll = 0;
|
| | | }
|
| | | setPage();
|
| | | //console.info(Page.pageAll); |
| | | createTbl(tblCon, arrTh, arrTd);
|
| | | }
|
| | | });
|
| | | /* 模拟数据做好就删!!!!!!!! */
|
| | |
|
| | | for(i=0;i<340;i++){
|
| | | /*for(i=0;i<340;i++){
|
| | | if(i%34==33){
|
| | | //<a href="count-report.html" target="_top" class="ui-btn ui-corner-all ui-shadow ui-icon-back ui-btn-icon-left" style="padding-top: 0.7em; padding-bottom: 0.7em;">返回</a>
|
| | | arrTd[i]='<a href="#myPopup" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window" >修改或删除</a>';
|
| | |
| | | function createSearchParam(){
|
| | | var temp = {
|
| | | page:Page,
|
| | | stationName1:$('#mainteArea').val(),
|
| | | stationName2:$('#city').val(),
|
| | | stationName5: $('#country').val(),
|
| | | stationName:$('#homeName').val(),
|
| | | |
| | | binf:{
|
| | | StationName1:$('#mainteArea').val(),
|
| | | StationName2:$('#city').val(),
|
| | | StationName5: $('#country').val(),
|
| | | StationName:$('#homeName').val(),
|
| | | },
|
| | | };
|
| | | console.info(temp);
|
| | | return temp;
|