From 50a68a1fef8b2646352be0104f6c9fed36b1efbf Mon Sep 17 00:00:00 2001
From: CJJ <Administrator@192.168.10.27>
Date: 星期五, 14 十二月 2018 11:12:25 +0800
Subject: [PATCH] 修改

---
 gx_tieta/WebRoot/mobil/batt-infor-unapproved-edit.html |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/gx_tieta/WebRoot/mobil/batt-infor-unapproved-edit.html b/gx_tieta/WebRoot/mobil/batt-infor-unapproved-edit.html
index 3c1a91f..6c7b6aa 100644
--- a/gx_tieta/WebRoot/mobil/batt-infor-unapproved-edit.html
+++ b/gx_tieta/WebRoot/mobil/batt-infor-unapproved-edit.html
@@ -53,7 +53,13 @@
   	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);
 	temp=JSON.parse(temp);
 	tempindex = JSON.parse(tempindex);
 	tempnum =JSON.parse(tempnum);
@@ -180,12 +186,7 @@
 												<input type="text" id="FBSDeviceName" data-mini="true" />
 											</td>
 										</tr>
-										<tr>
-											<td>鐢垫睜缁処D</td>
-											<td>
-												<input type="text" readonly unselectable="on" value="123" id="BattGroupId" class="unable" class="uncheck" data-mini="true" />
-											</td>
-										</tr>
+										
 										<tr>
 											<td>鏈烘埧鍐呯數姹犵粍缂栧彿</td>
 											<td>
@@ -346,7 +347,7 @@
 		document.getElementById("FbsDeviceIp_WG").value = temp[10];
 		document.getElementById("FBSDeviceName").value = temp[11];
 		//document.getElementById("GroupIndexInFBSDevice").value = temp[12];
-		document.getElementById("BattGroupId").value = temp[13];
+		//document.getElementById("BattGroupId").value = temp[13];
 		document.getElementById("BattGroupNum").value = temp[14];
 		//document.getElementById("BattGroupName").value = temp[15];
 		document.getElementById("FloatVolLevel").value = temp[16];
@@ -377,6 +378,7 @@
 	// 鏍煎紡鍖栨彁浜ゅ悗鍙颁俊鎭殑瀵硅薄鏁扮粍淇敼
 	function getUpdateArr(){
 			var arr = new Array();
+			
 			for(var i=0;i<tempindex.length;i++){
 				var battString = "#battname"+i;
 				var index = String(i);
@@ -400,7 +402,7 @@
 						FbsDeviceIp_WG : $("#FbsDeviceIp_WG").val(),			// 缃戝叧
 						FBSDeviceName : $("#FBSDeviceName").val(),			//璁惧鍚嶇О
 						GroupIndexInFBSDevice : i,	//fbs璁惧绱㈠紩
-						BattGroupId : $("#BattGroupId").val(),				//鐢垫睜缁刬d
+						BattGroupId : tempgroupid[i],				//鐢垫睜缁刬d
 						BattGroupNum : $("#BattGroupNum").val(),			//鏈烘埧鍐呯數姹犵粍缂栧彿
 						BattGroupName : $(battString).val(),
 						FloatVolLevel : $("#FloatVolLevel").val(),			//娴厖鐢靛帇闃�鍊�
@@ -460,7 +462,7 @@
 					console.info(model);
 					if(model.code ==1){
 						alert("淇敼鎴愬姛");
-						window.location.href="batt-unapproved.html"
+						//window.location.href="batt-unapproved.html"
 					}else{
 						alert("淇敼澶辫触!");
 						//window.location.href="batt-unapproved.html"

--
Gitblit v1.9.1