From a2c19ac65da566f4825480619a7f367e81f2d8b3 Mon Sep 17 00:00:00 2001 From: hdw <496960745@qq.com> Date: 星期五, 14 十二月 2018 13:06:41 +0800 Subject: [PATCH] 手机端首页机房定位修改链接为map.html --- gx_tieta/WebRoot/mobil/batt-infor-unapproved-edit.html | 33 ++++++++++++++++++++------------- 1 files changed, 20 insertions(+), 13 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/batt-infor-unapproved-edit.html b/gx_tieta/WebRoot/mobil/batt-infor-unapproved-edit.html index d43af6d..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); @@ -111,7 +117,7 @@ <tr> <td>鏈烘埧缂栧彿</td> <td> - <input type="text" id="StationId" data-mini="true" /> + <input type="text" id="StationId" class="unable" data-mini="true" /> </td> </tr> <tr> @@ -153,13 +159,13 @@ <tr> <td>FBS璁惧ID(閲嶈)</td> <td> - <input type="text" id="FBSDeviceId" data-mini="true" /> + <input type="text" id="FBSDeviceId" class="unable" data-mini="true" /> </td> </tr> <tr> <td>FBS璁惧IP(閲嶈)</td> <td> - <input type="text" id="FbsDeviceIp" data-mini="true" /> + <input type="text" id="FbsDeviceIp" class="unable" data-mini="true" /> </td> </tr> <tr> @@ -180,16 +186,11 @@ <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="uncheck" data-mini="true" /> - </td> - </tr> + <tr> <td>鏈烘埧鍐呯數姹犵粍缂栧彿</td> <td> - <input type="text" readonly unselectable="on" value="123" id="BattGroupNum" class="uncheck" data-mini="true" /> + <input type="text" readonly unselectable="on" value="123" id="BattGroupNum" class="unable" class="uncheck" data-mini="true" /> </td> </tr> @@ -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,13 +378,15 @@ // 鏍煎紡鍖栨彁浜ゅ悗鍙颁俊鎭殑瀵硅薄鏁扮粍淇敼 function getUpdateArr(){ var arr = new Array(); + for(var i=0;i<tempindex.length;i++){ var battString = "#battname"+i; var index = String(i); console.info(battString); var obj = { - //apply_date : new Date().format("yyyy-MM-dd hh:mm:ss"), + apply_date : new Date().format("yyyy-MM-dd hh:mm:ss"), num : tempnum[i], + binf:{ StationId : $("#StationId").val(), // 鏈烘埧缂栧彿 StationName : ($("#station_name1").val()+"-"+$("#city").val()+"-"+$("#StationName3").val()+"-"+$("#StationName4").val()), // 鎷兼帴鏈烘埧鍚嶇О @@ -399,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(), //娴厖鐢靛帇闃�鍊� @@ -421,6 +424,7 @@ BattProductDate : $("#startTestrecord").val()+" 00:00:00", //鐢垫睜鐢熶骇鏃ユ湡 BattInUseDate : $("#endTestrecord").val()+" 00:00:00", //鐢垫睜浣跨敤鏃ユ湡 install_user : $("#install_user").val(), //瀹夎浜哄憳 + } } arr.push(obj); @@ -458,12 +462,15 @@ console.info(model); if(model.code ==1){ alert("淇敼鎴愬姛"); + //window.location.href="batt-unapproved.html" }else{ alert("淇敼澶辫触!"); + //window.location.href="batt-unapproved.html" } }, error:function(){ alert("淇敼鐢垫睜缁勫け璐�!"); + //window.location.href="batt-unapproved.html" } }); } -- Gitblit v1.9.1