| | |
| | | $(".unable").prop("readonly","readonly").attr("unselectable","on").addClass("uncheck");
|
| | | $("#sure").click(function(){
|
| | | editParm();
|
| | | /* function backpage(){window.location.href="ele-param1.html";}
|
| | | setTimeout(backpage,500); |
| | | });
|
| | | $("#cancel").click(function(){
|
| | | window.location.href="ele-param1.html";
|
| | | */
|
| | |
|
| | | });
|
| | | });
|
| | | function editParm(){
|
| | |
| | | console.info(model);
|
| | | if(model.code ==1){
|
| | | alert("修改成功");
|
| | | //window.location.href="batt-unapproved.html"
|
| | | window.location.href="batt-unapproved.html"
|
| | | }else{
|
| | | alert("修改失败!");
|
| | | //window.location.href="batt-unapproved.html"
|
| | | window.location.href="batt-unapproved.html"
|
| | | }
|
| | | },
|
| | | error:function(){
|
| | | alert("修改电池组失败!");
|
| | | //window.location.href="batt-unapproved.html"
|
| | | window.location.href="batt-unapproved.html"
|
| | | }
|
| | | });
|
| | | }
|