| | |
| | | $('#battList').on('click', 'ul li', function () {
|
| | | aLi = $(this).index();
|
| | | console.info(aLi);
|
| | | console.info(stationlist);
|
| | | station = getbatt(stationlist,aLi);
|
| | | var arr=setarrbatt(arrdata,station);
|
| | | console.info(arr);
|
| | | window.location.href="hcheckAccpet.html";
|
| | | if(arr){
|
| | | window.location.href="hcheckAccpet.html";
|
| | | }
|
| | | });
|
| | | });
|
| | |
|
| | |
| | |
|
| | | // 查询内容
|
| | | function searchBattLife(){
|
| | | loadshow();
|
| | | var temp = JSON.stringify(getcreatArr());
|
| | | console.info(temp);
|
| | | arrTd = new Array();
|
| | |
| | | }
|
| | | }
|
| | | //console.info(model);
|
| | | stationlist=model; |
| | | |
| | | }
|
| | | stationlist=model;
|
| | | //console.info(model);
|
| | | //if(Page.pageCurr==1){
|
| | | loadclose();
|
| | | createUl($('#battList'),model);
|
| | | //}else{
|
| | | //addteUl($('#battList'),model);
|
| | | //}
|
| | | }
|
| | | }
|
| | | }); |
| | | |
| | | }); |
| | | loadclose(); |
| | | }
|
| | |
|
| | | function setarrbatt(arrdata,station){
|
| | |
| | | address:arrdata[i].address,//地址
|
| | | binf:{
|
| | | StationId : arrdata[i].binf.StationId, // 机房编号
|
| | | StationName : (arrdata[i].binf.StationName1+"-"+ arrdata[i].binf.StationName2+"-"+arrdata[i].binf.StationName5+"-"+arrdata[i].binf.StationName3), // 拼接机房名称
|
| | | StationName : (arrdata[i].binf.StationName1+"-"+ arrdata[i].binf.StationName2+"-"+arrdata[i].binf.StationName3+"-"+arrdata[i].binf.StationName4), // 拼接机房名称
|
| | | StationName1 :arrdata[i].binf.StationName1, // 省
|
| | | StationName2 : arrdata[i].binf.StationName2, // 市
|
| | | StationName5 : arrdata[i].binf.StationName5, // 区/县
|
| | |
| | | console.info(arr);
|
| | | //applyendyanshou(arr);//申请验收方法。
|
| | | var json=window.JSON.stringify(arr);
|
| | | setCookie("wapproval",json); //这里setcookie,若有上一条cookie则清空上一笔
|
| | | setCookie("happroval",json); //这里setcookie,若有上一条cookie则清空上一笔
|
| | | return arr;
|
| | | }
|
| | | function addteUl(ulCon,dataList){
|