From fe58fc0ea20fac1a62135b3068b1a1b8e02b6c8a Mon Sep 17 00:00:00 2001
From: CCJJ <Administrator@USER-20180117QL>
Date: 星期四, 20 十二月 2018 11:50:15 +0800
Subject: [PATCH] 修改

---
 gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html |   31 +++++++++++++++++++++++++++++--
 1 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html b/gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html
index fa06f01..da1ff02 100644
--- a/gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html
+++ b/gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html
@@ -594,8 +594,11 @@
 		$(".unable").prop("readonly","readonly").attr("unselectable","on").addClass("uncheck");
 		$("#sure").click(function(){
 			if(nullOrn()){
+			//if(tem[35]=="new"){
 				creatgroupid();//鎻愪氦涔嬪墠鍐嶆楠岃瘉锛屽垱寤篒D
 				addBattnew(); 	//鎻愪氦
+			//}else{editBatt();
+			//}	
 			}else{
 			}				//楠岃瘉閲嶈椤规槸鍚︿负绌猴紝涓虹┖鍒欐彁绀猴紱   
 	   		//function backpage(){window.location.href="ele-param1.html";}
@@ -616,7 +619,7 @@
  	
  	}
  	
- 	function addBattnew(){
+ 	function addBattnew(){//鏂板缓鐢垫睜缁勶紝娣诲姞鍒扮敵璇�
  		var temp = JSON.stringify(getUpdateArr());
  		console.info(temp);
  		$.ajax({
@@ -638,7 +641,31 @@
  			}
  		});
  	}
-       
+    
+      //淇敼鐢垫睜缁勶紝娣诲姞鍒癇ATTINF
+	function editParm(){
+   		var parm = getUpdateArr();	
+   		$.ajax({
+				type: "post", 				
+		        url: "BattInfAction!update",				
+		        async:true,				
+		        dataType:'text',
+		        data:"json="+JSON.stringify(parm),	
+		        success: function(data){							        	
+					data = eval('('+data+')');
+					var model = eval('('+data.result+')');
+					console.info(model);
+					if(model.code ==1){
+						alert("淇敼鎴愬姛");
+					}else{
+						alert("淇敼澶辫触!");
+					}		
+	        	},
+	        	error:function(){
+	        		alert("淇敼鐢垫睜缁勫け璐�!");
+	        	}
+ 		});
+   }   
     /* 鎿嶄綔鎴愬姛 
    $('#changeSuc').popup('open');
        鎿嶄綔澶辫触

--
Gitblit v1.9.1