CJJ
2018-12-20 866a6facb439b93b7d693bb84730714200c7f85a
gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html
@@ -57,6 +57,7 @@
   console.info(temp);
   console.info(temp[30]);
   console.info(temp[33]);
   console.info(temp[34]);
   var suoyin = temp[33];
   
   $(function(){creatAllView(suoyin)});
@@ -99,7 +100,7 @@
      
      <!-- 头部内容 -->
      <div data-role="header" data-position="fixed">
         <a href="ele-param1.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>
         <a href="ele-param2.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>
         <h1>电池组申请安装</h1>
         
      </div>
@@ -350,7 +351,13 @@
   $(function () {
      //setTimes($("#startTestrecord"),'2000-01-01');
      //setTimes($("#endTestrecord"),new Date().format('yyyy-MM-dd'));
      creatgroupid();//如果检测为NEW ,则执行添加ID,如果为修改,则执行为拿到ID
      console.info()
      if(temp[34]!="edit")
      {
      console.warn("sssss")
         creatgroupid();//如果检测为NEW ,则执行添加ID,如果为修改,则执行为拿到ID
      }else{
      }
      installstartdata(temp);
   });
   
@@ -421,7 +428,7 @@
   
   //导入表格默认数据
   function installstartdata(temp){
      creatgroupid();
      var data = {
                StationId: '4011100'
                ,StationName1: '广西省'
@@ -458,7 +465,8 @@
                ,install_user: '呵呵'
            };
            console.info(data.StationId);
      if(temp.length>0){
      if(temp[34]!="edit"){
         creatgroupid();
         document.getElementById("StationId").value = data.StationId;
   //      document.getElementById("station_name1").value = data.StationName1;
   //      document.getElementById("city").value = data.StationName2;         //市
@@ -502,7 +510,7 @@
         document.getElementById("StationName3").value = temp[4];   //机房名称
         document.getElementById("StationName4").value = temp[5];    //设备名称
         document.getElementById("StationIp").value = temp[6];      //设备IP
         //document.getElementById("FBSDeviceId").value = dev_id;
         document.getElementById("FBSDeviceId").value = temp[7];
         document.getElementById("FbsDeviceIp").value = temp[8];
         document.getElementById("FbsDeviceIp_YM").value = temp[9];
         document.getElementById("FbsDeviceIp_WG").value = temp[10];
@@ -594,18 +602,19 @@
      $(".unable").prop("readonly","readonly").attr("unselectable","on").addClass("uncheck");
      $("#sure").click(function(){
         if(nullOrn()){
         //if(tem[35]=="new"){
            creatgroupid();//提交之前再次验证,创建ID
            addBattnew();    //提交
         //}else{editBatt();
         //}
            if(temp[34]=="edit"){
               creatgroupid();//提交之前再次验证,创建ID
               addBattnew();    //提交
            }else{
               editBatt();
            }
         }else{
         }            //验证重要项是否为空,为空则提示;   
            //function backpage(){window.location.href="ele-param1.html";}
          // setTimeout(backpage,500); 
      });
      $("#cancel").click(function(){
          window.location.href="ele-param1.html";
          window.location.href="ele-param2.html";
      });
   });