From edfca26eaf80c4e3ac67ec6cfe4b1aafde226148 Mon Sep 17 00:00:00 2001
From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139>
Date: 星期五, 18 一月 2019 11:45:55 +0800
Subject: [PATCH] 修改

---
 gx_tieta/WebRoot/mobil/batt-edit.html |   61 ++++++++++++------------------
 1 files changed, 24 insertions(+), 37 deletions(-)

diff --git a/gx_tieta/WebRoot/mobil/batt-edit.html b/gx_tieta/WebRoot/mobil/batt-edit.html
index 9421b51..e1939b2 100644
--- a/gx_tieta/WebRoot/mobil/batt-edit.html
+++ b/gx_tieta/WebRoot/mobil/batt-edit.html
@@ -80,16 +80,11 @@
             	</h1>
             	</div>
             </div> -->
-            <fieldset data-role="controlgroup" class="ptr0" >
-		           
-		           
+            <fieldset data-role="controlgroup" class="ptr0" >        
 			            <select id="newbattnum" data-mini="true">
-			              <option value=0>鏂板缓鐢垫睜缁�</option>
-			              
-			            </select>
-			            
-		            	
-		        	</fieldset>
+			              <option value=0>鏂板缓鐢垫睜缁�</option>        
+			            </select>         	
+		    </fieldset>
 		</div>
 		<!-- 涓讳綋鍐呭 -->
 		<div data-role="main">
@@ -105,25 +100,25 @@
 										<tr>
 											<td>鐪�</td>
 											<td>
-												<input type="text" id="station_name1" data-mini="true" />
+												<input type="text" id="station_name1"class="unable" data-mini="true" />
 											</td>
 										</tr>
 										<tr>
 											<td>鍩庡競</td>
 											<td>
-												<input type="text" id="city" data-mini="true" />
+												<input type="text" id="city" class="unable"data-mini="true" />
 											</td>
 										</tr>
 										<tr>
 											<td>鍖哄幙</td>
 											<td>
-												<input type="text" id="county" data-mini="true" />
+												<input type="text" id="county" class="unable"data-mini="true" />
 											</td>
 										</tr>
 										<tr>
 											<td>鏈烘埧鍚嶇О</td>
 											<td>
-												<input type="text" id="StationName3" data-mini="true" />
+												<input type="text" id="StationName3"class="unable" data-mini="true" />
 											</td>
 										</tr>
 										<tr>
@@ -349,30 +344,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 +408,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,13 +477,13 @@
 	    });
    });
      
-      //淇敼鐢垫睜缁勶紝娣诲姞鍒癇ATTINF
+      //淇敼鐢垫睜缁勶紝娣诲姞鍒癇ATTAPPLY琛�
 	function editBatt(){
    		var parm = getUpdateArredit();
    		console.info(parm);	
    		$.ajax({
 				type: "post", 				
-		        url: "BattInfAction!update",				
+		        url: "Battinf_applyAction!addPro",				
 		        async:true,				
 		        dataType:'text',
 		        data:"json="+JSON.stringify(parm),	

--
Gitblit v1.9.1