| | |
| | | <link rel="stylesheet" href="css/fgpanel.css">
|
| | | </head>
|
| | | <body>
|
| | | |
| | | <div data-role="page">
|
| | | <div class="fg-panel">
|
| | | <form>
|
| | |
| | | </div>
|
| | |
|
| | |
|
| | | |
| | | <div class="rel-full">
|
| | | <div id="mapSearch" class="map-search-container">
|
| | | <div class="layui-form layui-form-pane" action="">
|
| | | <div class="layui-form-item">
|
| | | <label class="layui-form-label"><i class="fa fa-search"></i></label>
|
| | | <div class="layui-input-block">
|
| | | <input type="text" name="title" id="searchInput" autocomplete="off" placeholder="机房搜索" class="layui-input">
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | <div data-role="footer" data-position="fixed" data-theme="a">
|
| | | <div data-role="navbar">
|
| | | <ul>
|
| | | <li><a href="index.html" id="cancel" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but ui-btn-icon-delete" data-position-to="window" data-icon="delete" data-role="button">首页</a></li>
|
| | | <li><a href="index.html" id="cancel" class="ui-btn ui-btn-inline ui-corner-all operat-but ui-btn-icon-delete" data-position-to="window" data-icon="delete" data-role="button">首页</a></li>
|
| | | <li><a href="#yourPopup" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but ui-btn-icon-check" data-position-to="window" data-icon="check" data-role="button">新建</a></li>
|
| | | </ul>
|
| | | </div>
|
| | |
| | | <fieldset data-role="controlgroup" >
|
| | |
|
| | |
|
| | | <select data-mini="true">
|
| | | <option value="">新建1个电池组</option>
|
| | | <option value="">新建2个电池组</option>
|
| | | <option value="">新建3个电池组</option>
|
| | | <option value="">新建4个电池组</option>
|
| | | <select id="newbattnum" data-mini="true">
|
| | | <option value="1">新建1个电池组</option>
|
| | | <option value="2">新建2个电池组</option>
|
| | | <option value="3">新建3个电池组</option>
|
| | | <option value="4">新建4个电池组</option>
|
| | | </select>
|
| | |
|
| | |
|
| | |
| | |
|
| | | $('document').ready(function(){panel.show();});
|
| | | $("#sure").click(function(){
|
| | | window.location.href="batt-infor-conf-temp.html"; |
| | | var currentlength = Math.floor(arrTd.length/34);
|
| | | if(currentlength<Page.pageSize){
|
| | | setcookieCreat(currentlength-1);
|
| | | }else{
|
| | | setcookieCreat(Page.pageSize-1);
|
| | | }
|
| | | window.location.href="batt-infor-conf-temp1.html"; |
| | | });
|
| | |
|
| | | var arrTh = [ '机房编号', '省', '城市','区县','机房名称','设备名称','机房IP','FBS设备ID(重要)','FBS设备IP(重要)','子网掩码','网关','FBS设备名称','FBS电池索引(0-3)','电池组ID','机房内电池组编号','电池组名称','浮充电压阀值(V)','离线电压阀值(V)','浮充电流阀值(A)','单体数量','标称容量(AH)','标称单体电压(V)','标称单体内阻(mΩ)','标称单体电导','单体电压次低偏移量(V)','负载电流(A)','最大核容电流(A)','基站号码','电池品牌','电池型号','电池生产日期','投入使用日期','安装人员'];
|
| | |
| | | $(document).ready(function(){
|
| | | setPage();
|
| | | $("#submit").click(function(){
|
| | | //newbattnum;
|
| | | |
| | | Page.pageCurr=1;
|
| | | searchBattLife();
|
| | | });
|
| | | });
|
| | | function setcookiedit(index){
|
| | | var arrcookie = new Array(); |
| | | for(var i=0;i<33;i++){//共34项,最后一项为按钮,不必SET进数据
|
| | | var value = Math.floor(34*index);
|
| | | //console.info(value);
|
| | | value = Math.floor(value+i);
|
| | | //console.info(value);
|
| | | arrcookie.push(arrTd[value]);
|
| | | }
|
| | | var json=window.JSON.stringify(arrcookie);
|
| | | setCookie("eleparm",json); //这里setcookie,若有上一条cookie则清空上一笔
|
| | | }
|
| | | |
| | | |
| | | function setcookieCreat(index){
|
| | | var arrcookie = new Array();
|
| | | for(var i=0;i<33;i++){//共34项,最后一项为按钮,不必SET进数据
|
| | | var value = Math.floor(34*index);
|
| | | //console.info(value);
|
| | | for(var i=0;i<33;i++){//共33项
|
| | | var value = Math.floor(33*index);
|
| | | console.info(value);
|
| | | value = Math.floor(value+i);
|
| | | if(i==13){//新建功能,电池组ID默认为当页最后一个电池组ID号加1
|
| | | var groupid = Math.floor(arrTd[value]+1);
|
| | | console.info(groupid);
|
| | | arrcookie.push(groupid);
|
| | | }else{
|
| | | //console.info(value);
|
| | | console.info(value);
|
| | | arrcookie.push(arrTd[value]);
|
| | | }
|
| | | }
|
| | | arrcookie.push("new");
|
| | | console.info($("#newbattnum").val());
|
| | | arrcookie.push($("#newbattnum").val());
|
| | | //console.info(arrcookie);
|
| | | var json=window.JSON.stringify(arrcookie);
|
| | | setCookie("eleparm",json); //这里setcookie,若有上一条cookie则清空上一笔
|
| | |
| | | /* arrTd.push("");
|
| | | arrTd.push("");
|
| | | arrTd.push(model.data[i].StationId_ex); //投入使用日期 */
|
| | | |
| | | Page.pageAll = data[i].num;
|
| | | }
|
| | |
|
| | | }else{
|
| | |
| | | createTbl(tblCon, arrTh, arrTd);
|
| | | }
|
| | | });
|
| | | |
| | | /* 模拟数据做好就删!!!!!!!! */
|
| | | |
| | | /*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>';
|
| | | console.warn(i);
|
| | | continue;
|
| | | |
| | | } |
| | | |
| | | arrTd[i]=i*10;
|
| | | }
|
| | | |
| | | createTbl(tblCon, arrTh, arrTd);
|
| | |
|
| | | /* 模拟数据做好就删!!!!!!!! */ |
| | | }
|
| | | function getUpdateArr(temp){
|
| | | var arr = new Array();
|
| | |
| | | console.info(arr);
|
| | | return arr;
|
| | | }
|
| | | |
| | | //删除电池组
|
| | | function delBatt(temp){
|
| | | $.ajax({
|
| | | type: "post", |
| | | url: "BattInfAction!delete", |
| | | async:true, |
| | | dataType:'text',
|
| | | data:"json="+JSON.stringify(temp), |
| | | success: function(data){ |
| | | data = eval('('+data+')');
|
| | | var model = eval('('+data.result+')');
|
| | | console.info(model);
|
| | | if(model.code ==1){
|
| | | alert("删除电池组成功!");
|
| | | searchBattLife();
|
| | | }else{
|
| | | alert("删除电池组失败!");
|
| | | } |
| | | },
|
| | | error:function(){
|
| | | alert("删除电池组失败!");
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | |
|
| | | function createSearchForm(){
|
| | | var temp={
|
| | |
| | | StationName1:$('#mainteArea').val(),
|
| | | StationName2:$('#city').val(),
|
| | | StationName5:$('#country').val(),
|
| | | StationName:$('#homeName').val(),
|
| | | |
| | | StationName:$('#homeName').val(), |
| | | };
|
| | | return temp;
|
| | | }
|
| | |
| | | $.post("BattInfAction_serchByStation",null,function(data){
|
| | | data = data.result;
|
| | | data = eval("("+data+")");
|
| | | //console.info(data);
|
| | | //console.info(data.code);
|
| | | if(data.code==1&&data.data.length>0){
|
| | | var $Ostation_name1=$("#mainteArea");
|
| | | $Ostation_name1.text("");
|
| | |
| | | var data = {
|
| | | StationName1: $("#mainteArea").val()
|
| | | };
|
| | | //console.info(data);
|
| | | // 请求获取当前省下的市
|
| | | $.ajax({ |
| | | $.ajax({ |
| | | type: "post",
|
| | | url: "BattInfAction!serchStationName2",
|
| | | async:true,
|