| | |
| | | /* 获取点击的是哪个按钮 */
|
| | | function getDeleteButIndex(t){
|
| | | console.warn($(t).attr("but-index")+' 删除');
|
| | | var index = $(t).attr("but-index"); |
| | | //setcookiedit(index);
|
| | | var index = $(t).attr("but-index"); |
| | | console.info(index); |
| | | setcookiedit(index);
|
| | | //var parm = battDeleteparm();
|
| | | //console.info(parm);
|
| | | //delBatt(parm);
|
| | | return ;
|
| | | }
|
| | | function getEditButIndex(t){
|
| | | console.warn($(t).attr("but-index")+' 修改');
|
| | | var index = $(t).attr("but-index");
|
| | | //setcookiedit(index);
|
| | | //window.location.href="batt-infor-unapproved-edit.html"; |
| | | setcookiedit(index);
|
| | | window.location.href="batt-infor-unapproved-edit.html"; |
| | | return ;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | // 查询内容
|
| | | function searchBattLife(){
|
| | | /* var temp = JSON.stringify(getcreatArr());
|
| | | var temp = JSON.stringify(getcreatArr());
|
| | | console.info(temp);
|
| | | arrTd = new Array();
|
| | | var index = 0;
|
| | |
| | | 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++] = '<a onclick="getButIndex(this)" href="#myPopup" id="butt" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window"'+'but-index='+i+'>修改或删除</a>';continue;
|
| | | }
|
| | | arrTd[index++]='<a onclick="getEditButIndex(this)" id="edit" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window"'+'but-index='+i+'>修改</a>'+'<a onclick="getDeleteButIndex(this)" href="#myPopup" id="" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but fr" data-position-to="window"'+'but-index='+i+'>删除</a>';
|
| | | }
|
| | | }
|
| | |
|
| | | setPage();
|
| | | createTbl(tblCon, arrTh, arrTd);
|
| | | }
|
| | | }); */
|
| | | |
| | | for(i=0;i<340;i++){
|
| | | }); |
| | | } |
| | | /* for(i=0;i<340;i++){
|
| | | if(i%34==33){
|
| | | arrTd[i]='<a onclick="getEditButIndex(this)" id="edit" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window"'+'but-index='+i+'>修改</a>'+'<a onclick="getDeleteButIndex(this)" href="#myPopup" id="" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but fr" data-position-to="window"'+'but-index='+i+'>删除</a>';
|
| | |
|
| | |
| | | }
|
| | |
|
| | | createTbl(tblCon, arrTh, arrTd);
|
| | | }
|
| | | }*/
|
| | |
|
| | | function searchHomeInfoByName(id) {
|
| | | var groupName = new Array();
|
| | |
| | | }
|
| | | arr.push(obj);
|
| | | //}
|
| | | console.info(arr);
|
| | | //console.info(arr);
|
| | | return arr;
|
| | |
|
| | | }
|