| | |
| | | /* 获取点击的是哪个按钮 */
|
| | | function getButIndex(t){
|
| | | var index = $(t).attr("but-index");
|
| | | index=(index/33-1);
|
| | | // index=(index/33-1);
|
| | | console.info(index);
|
| | | setcookiedit(index);
|
| | | //window.location.href="control.html"; |
| | | window.location.href="control.html"; |
| | | return ;
|
| | | }
|
| | |
|
| | |
| | | return obj;
|
| | | }
|
| | | // 查询内容
|
| | | /* function searchBattLife(){
|
| | | function searchBattLife(){
|
| | | var temp = JSON.stringify(getcreatArr());
|
| | | console.info(temp);
|
| | | arrTd = new Array();
|
| | |
| | | arrTd[index++] = data[i].binf.BattProductDate.substr(0,10);
|
| | | arrTd[index++] = data[i].binf.BattInUseDate.substr(0,10);
|
| | | arrTd[index++] = data[i].binf.install_user;
|
| | | arrTd[index++] = "";
|
| | | arrTd[index++] = arrTd[i]='<a href="" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window" >电池组实时数据</a>';
|
| | | //arrTd[index++] = "";
|
| | | arrTd[index++]='<a onclick="getButIndex(this)" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window"'+'but-index='+i+'>电池组实时数据</a>';
|
| | | }
|
| | | }
|
| | | console.info(arrTd);
|
| | | createTbl(tblCon, arrTh, arrTd);
|
| | | }
|
| | | });
|
| | | }*/
|
| | | }
|
| | |
|
| | | function setcookiedit(index){
|
| | | var arrcookie = new Array();
|
| | |
| | | }
|
| | |
|
| | | // 查询内容
|
| | | function searchBattLife(){
|
| | | /* function searchBattLife(){
|
| | |
|
| | |
|
| | | /* 模拟数据做好就删!!!!!!!! */
|
| | |
|
| | | for(var i=0;i<340;i++){
|
| | | /* for(var 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>
|
| | | console.info(i);
|
| | | arrTd[i]='<a onclick="getButIndex(this)" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window"'+'but-index='+i+'>电池组实时数据</a>';
|
| | | |
| | | continue;
|
| | | }
|
| | | if(i=13){
|
| | | |
| | | } if(i==13){
|
| | | arrTd[i]=1002102;
|
| | | }else{
|
| | | arrTd[i]=i;
|
| | | arrTd[i]=i*10;
|
| | | }
|
| | | }
|
| | |
|
| | | createTbl(tblCon, arrTh, arrTd);
|
| | |
|
| | | /* 模拟数据做好就删!!!!!!!! */
|
| | | }
|
| | | //}
|
| | |
|
| | | function getUpdateArr(temp){
|
| | | var arr = new Array();
|