| | |
| | | }
|
| | | var temp = getCookie("eleparm");
|
| | | var tempindex = getCookie("eleparmindex");
|
| | | var tempnum = getCookie("eleparmnum");
|
| | | //console.info(temp);
|
| | | temp=JSON.parse(temp);
|
| | | tempindex = JSON.parse(tempindex);
|
| | | console.info(temp);
|
| | | tempnum =JSON.parse(tempnum);
|
| | | console.info(tempnum);
|
| | | console.info(temp[30]);
|
| | | console.info(temp[33]);
|
| | | console.info(tempindex);
|
| | |
| | | console.info(battString);
|
| | | var obj = {
|
| | | //apply_date : new Date().format("yyyy-MM-dd hh:mm:ss"),
|
| | | num : tempnum[i],
|
| | | binf:{
|
| | | StationId : $("#StationId").val(), // 机房编号
|
| | | StationName : ($("#station_name1").val()+"-"+$("#city").val()+"-"+$("#StationName3").val()+"-"+$("#StationName4").val()), // 拼接机房名称
|
| | |
| | | function searchHomeInfoByName(id) {
|
| | | var groupName = new Array();
|
| | | var index = 0;
|
| | | var num =new Array();
|
| | | var index1 = 0;
|
| | | var temp = {
|
| | | binf:{
|
| | | StationId:id, // 省
|
| | |
| | | console.info(data);
|
| | | data = data.data;
|
| | | for(var i=0;i<data.length;i++){
|
| | | console.info(data[i]);
|
| | | groupName[index++] = data[i].binf.BattGroupName;
|
| | | num[index1++] = data[i].num;
|
| | | }
|
| | | var json = JSON.stringify(groupName); |
| | | var json = JSON.stringify(groupName);
|
| | | var json1 =JSON.stringify(num); |
| | | setCookie("eleparmindex",json);
|
| | | setCookie("eleparmnum",json1);
|
| | | console.info(groupName);
|
| | | }
|
| | | })
|