| | |
| | | var model = new Array();
|
| | | console.info(data);
|
| | | for(var i=0;i<data.length;i++){
|
| | | arrdata.push(data[i]);//存储数据
|
| | | if(model.length==0){
|
| | | model.push(data[i].binf.StationName);
|
| | | }else{
|
| | | if(model[model.length-1]!=data[i].binf.StationName){
|
| | | model.push(data[i].binf.StationName);
|
| | | }
|
| | | }
|
| | | console.info(model);
|
| | | stationlist=model;
|
| | | if(data[i].check_en!=1){
|
| | | arrdata.push(data[i]);//存储数据
|
| | | if(model.length==0){
|
| | | model.push(data[i].binf.StationName);
|
| | | }else{
|
| | | if(model[model.length-1]!=data[i].binf.StationName){//若不重复,则PUSH进去
|
| | | model.push(data[i].binf.StationName);
|
| | | }
|
| | | }
|
| | | console.info(model);
|
| | | stationlist=model;
|
| | | }
|
| | | }
|
| | | createUl($('#battList'),model);
|
| | | }
|
| | | |
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | function setarrbatt(arrdata,station){
|
| | | console.info(arrdata);
|
| | | if(arrdata.length>0){ //存入的为所有已查出数据 |
| | | var arr= creatYanshouObj(arrdata,station);//申请验收方法。
|
| | | return arr;
|
| | | }else{
|
| | | alert("请等待几秒后再提交申请");
|
| | | }
|
| | | console.info(arrdata);
|
| | | if(arrdata.length>0){ //存入的为所有已查出数据 |
| | | var arr= creatYanshouObj(arrdata,station);//申请验收方法。
|
| | | return arr;
|
| | | }else{
|
| | | alert("请等待几秒后再提交申请");
|
| | | }
|
| | | }
|
| | | function creatYanshouObj(arrdata,station){ //通过点击机房信息(stationid),获取该机房电池组
|
| | | //var StationId = arrdata[index].binf.StationId;
|