From a3e0ff8aab80c2a9425d4ccb66c862df957dcf2f Mon Sep 17 00:00:00 2001
From: hdw <496960745@qq.com>
Date: 星期四, 06 十二月 2018 14:29:09 +0800
Subject: [PATCH] 导出数据

---
 gx_tieta/WebRoot/mobil/batt-infor-conf-temp.html |   26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/gx_tieta/WebRoot/mobil/batt-infor-conf-temp.html b/gx_tieta/WebRoot/mobil/batt-infor-conf-temp.html
index bd88a3d..5e02643 100644
--- a/gx_tieta/WebRoot/mobil/batt-infor-conf-temp.html
+++ b/gx_tieta/WebRoot/mobil/batt-infor-conf-temp.html
@@ -283,9 +283,13 @@
 	temp=JSON.parse(temp);
 	console.info(temp);
 	console.info(temp[30]);
+	console.info(temp[33]);
 	installstartdata(temp);
-
-	getUpdateArr();
+	if(temp[33]&&temp[33]=="new"){
+		
+	}else{
+		
+	}	
 	function installstartdata(temp){
 		//$("#StationId").value=temp[0];
 		//var t=document.getElementById("station_name1");
@@ -378,13 +382,17 @@
    $(function(){
     $(".unable").prop("readonly","readonly").attr("unselectable","on").addClass("uncheck");
     $("#sure").click(function(){
-    	editParm();
-    	function backpage(){window.location.href="ele-param.html";}
-      		setTimeout(backpage,3000); 
-   		});
-    $("#cancel").click(function(){
-     window.location.href="ele-param.html";
-    });
+	    if(temp[33]&&temp[33]=="new"){
+			addBatt();
+		}else{
+			editParm();
+		}  	
+	   	function backpage(){window.location.href="ele-param.html";}
+	     		setTimeout(backpage,500); 
+	  		});
+	    $("#cancel").click(function(){
+	     window.location.href="ele-param.html";
+	    });
    });
    function editParm(){
    		var parm = getUpdateArr();	

--
Gitblit v1.9.1