| | |
| | | var iframePopup = '';
|
| | | function getEditButIndex(t){
|
| | | console.warn($(t).attr("but-index")+' 修改');
|
| | | var index = $(t).attr("but-index"); |
| | | var parm = seteditparm(index);
|
| | | var index = $(t).attr("but-index");
|
| | | |
| | | var parm = seteditparm(t);
|
| | | // console.info(getCookie("eleparm"));
|
| | | window.location.href="batt-edit2.html";
|
| | | return ;
|
| | |
| | | //setPage();
|
| | | $("#submit").off('click').on('click.cjj123',function(){
|
| | | //newbattnum;
|
| | | |
| | | //var homename= $('#homename').val()
|
| | | //Page.pageCurr=1;
|
| | | SearchParam();
|
| | | //console.info(homename);
|
| | | //console.info($('#homeName').val());
|
| | | if($('#homeName').val()&&$('#homeName').val()!=""){
|
| | | SearchParam();
|
| | | }else{
|
| | | alert("请选择一个机房");
|
| | | }
|
| | | });
|
| | | });
|
| | |
|
| | |
| | | }
|
| | |
|
| | | function creatYanshouObj(arrdata,index){
|
| | | console.info(arrdata[0]);
|
| | | console.info(index);
|
| | | var StationId = arrdata[index].StationId;
|
| | | //console.info(StationId);
|
| | | var arr = new Array(); //初始化传参数组
|
| | |
| | | arrTd.push(data[i].BattProductDate.substr(0,10)); //电池生产日期
|
| | | arrTd.push(data[i].BattInUseDate.substr(0,10)); //投入使用日期
|
| | | arrTd.push(data[i].install_user); // 设备安装人员
|
| | | arrTd.push('<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>');
|
| | | arrTd.push("");
|
| | | //arrTd.push('<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>');
|
| | | Page.pageAll = data[i].num;
|
| | |
|
| | | num.push(data.length);
|
| | |
| | | Page.pageAll = 0;
|
| | | }
|
| | | setPage();
|
| | | createTbl(tblCon, arrTh, arrTd); |
| | | //createTbl(tblCon, arrTh, arrTd); |
| | | getEditButIndex(0); |
| | | }
|
| | | });
|
| | |
|