CJJ
2018-12-25 94e5b0bddf2b83e1591de425d3e30030fcbb1d23
新建修改到APPLY
2个文件已修改
55 ■■■■■ 已修改文件
gx_tieta/WebRoot/mobil/batt-edit.html 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
gx_tieta/WebRoot/mobil/ele-param2.html 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
gx_tieta/WebRoot/mobil/batt-edit.html
@@ -349,30 +349,22 @@
         console.warn(opstring+'ttt'); 
         return $('#newbattnum').html(opstring);
   }
      var temp = getCookie("eleparm");
      var tempindex = getCookie("eleparmindex");
    var tempnum = getCookie("eleparmnum");
    //var temp
    //console.info(temp);
    var tempgroupid = getCookie("elegroupid");
    console.info(tempgroupid);
    tempgroupid = JSON.parse(tempgroupid);
    console.info(tempindex);
    console.info(tempnum);
      var temp = getCookie("eleparm");//从上一页面传来电话组信息
    temp=JSON.parse(temp);
    tempindex = JSON.parse(tempindex);
    tempnum =JSON.parse(tempnum);
    var suoyin = temp[33];
    var addbattnum = tempindex.length;
    console.info(temp);
    var tempgroupid = new Array() ;
    for(var i=0;i<temp.length;i++){
        tempgroupid.push(temp[i].binf.BattGroupId);
    }
    console.info(tempgroupid);//电池组 ID 数组,(若添加,则需要新建);
    var addbattnum = temp.length;//添加电池组数目计数
   $(function(){
   creatAllView(tempindex.length).trigger('create');
   creatBa(tempindex.length).trigger('create');
   creatAllView(temp.length).trigger('create');
   creatBa(temp.length).trigger('create');
   });
   
   
    </script>
<script type="text/javascript">    
@@ -421,9 +413,9 @@
        setTimes($("#startTestrecord"),temp[30]);
        setTimes($("#endTestrecord"),temp[31]);
        document.getElementById("install_user").value = temp[32];
        for(var i=0;i<tempindex.length;i++){
        for(var i=0;i<temp.length;i++){
            battname = "#battname"+i;    
            $(battname).val(tempindex[i]);
            //$(battname).val(temp[i].info);
        }
    }
    
@@ -490,7 +482,7 @@
        });
   });
     
      //修改电池组,添加到BATTINF
      //修改电池组,添加到BATTAPPLY表
    function editBatt(){
           var parm = getUpdateArredit();
           console.info(parm);    
gx_tieta/WebRoot/mobil/ele-param2.html
@@ -169,8 +169,8 @@
            console.warn($(t).attr("but-index")+' 修改');
            var index = $(t).attr("but-index");   
               var parm = seteditparm(index);
              console.info(getCookie("eleparm"));
              //window.location.href="batt-edit.html";
          //    console.info(getCookie("eleparm"));
              window.location.href="batt-edit.html";
            return ;
        }
    
@@ -436,18 +436,11 @@
                        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>');
                        Page.pageAll = data[i].num;
                        groupName.push(data[i].BattGroupName);
                        num.push(data.length);
                        groupId.push(data[i].BattGroupId);
                    } 
                     var json = JSON.stringify(groupName);
                    var json1 =JSON.stringify(num);
                    var json2 = JSON.stringify(groupId);
                    setCookie("eleparmindex",json);             //电池组名称
                    setCookie("eleparmnum",json1);                //电池组编号
                    setCookie("elegroupid",json2);
                }else{
                    Page.pageAll = 0;
                }