From ff22f39d5fedfdd7d6039b2415ea2a935c4efc1e Mon Sep 17 00:00:00 2001
From: 81041 <81041@192.168.10.22>
Date: 星期一, 17 十二月 2018 17:38:15 +0800
Subject: [PATCH] 修改

---
 gx_tieta/WebRoot/mobil/batt-approved.html |   31 ++++++++++++++++++-------------
 1 files changed, 18 insertions(+), 13 deletions(-)

diff --git a/gx_tieta/WebRoot/mobil/batt-approved.html b/gx_tieta/WebRoot/mobil/batt-approved.html
index 9054ed2..99d1651 100644
--- a/gx_tieta/WebRoot/mobil/batt-approved.html
+++ b/gx_tieta/WebRoot/mobil/batt-approved.html
@@ -138,10 +138,11 @@
  <script type="text/javascript">
           /* 鑾峰彇鐐瑰嚮鐨勬槸鍝釜鎸夐挳   */
           function getButIndex(t){
-			    //console.warn($(t).attr("but-index"));
 			    var index = $(t).attr("but-index");   
+			   // index=(index/33-1);
 			   	console.info(index);
-			   	setcookiedit(index); 	
+			   	setcookiedit(index);
+			   	window.location.href="control.html"; 	
 			    return ;
 			}
     
@@ -181,7 +182,7 @@
 		return obj;
 	}
 	// 鏌ヨ鍐呭
-/*	function searchBattLife(){
+	function searchBattLife(){
 		var temp = JSON.stringify(getcreatArr());
 		console.info(temp);
 		arrTd = new Array();
@@ -231,14 +232,15 @@
  					arrTd[index++] = data[i].binf.BattProductDate.substr(0,10);
  					arrTd[index++] = data[i].binf.BattInUseDate.substr(0,10);
  					arrTd[index++] = data[i].binf.install_user;
- 					arrTd[index++] = "";
- 					arrTd[index++] = arrTd[i]='<a href=""  class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window" >鐢垫睜缁勫疄鏃舵暟鎹�</a>';
+ 					//arrTd[index++] = "";
+ 					 arrTd[index++]='<a onclick="getButIndex(this)"  class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window"'+'but-index='+i+'>鐢垫睜缁勫疄鏃舵暟鎹�</a>';
  					}
  				}
+ 				console.info(arrTd);
  			createTbl(tblCon, arrTh, arrTd);
  			}
  		});			
-	}*/
+	}
 		
  		function setcookiedit(index){
  				var arrcookie = new Array();	
@@ -318,27 +320,30 @@
  		}
 		
 	// 鏌ヨ鍐呭
-		function searchBattLife(){
+	/*	function searchBattLife(){
 			
 		
 			/* 妯℃嫙鏁版嵁鍋氬ソ灏卞垹锛侊紒锛侊紒锛侊紒锛侊紒 */
 			
-			for(var i=0;i<340;i++){
+		/*	for(var i=0;i<340;i++){
 				if(i%34==33){
 				//<a href="count-report.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>
 				console.info(i);
-				arrTd[i]='<a onclick="getButIndex(this)"  class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window" >鐢垫睜缁勫疄鏃舵暟鎹�</a>';
-				console.warn(i);
+				arrTd[i]='<a onclick="getButIndex(this)"  class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window"'+'but-index='+i+'>鐢垫睜缁勫疄鏃舵暟鎹�</a>';
+				
 				continue;
 			
-			}   
-				arrTd[i]=i*10;
+			}   if(i==13){
+					arrTd[i]=1002102;
+				}else{
+					arrTd[i]=i*10;
+				}
 			}
 						
 			createTbl(tblCon, arrTh, arrTd);
 					
 			/* 妯℃嫙鏁版嵁鍋氬ソ灏卞垹锛侊紒锛侊紒锛侊紒锛侊紒 */				
-		}
+		//}
 
 		function getUpdateArr(temp){
 			var arr = new Array();

--
Gitblit v1.9.1