From e54aa16987b0a62106fb80dd8901af76ee4002ba Mon Sep 17 00:00:00 2001
From: hdw <hdw@192.168.7.127>
Date: 星期五, 18 一月 2019 12:31:27 +0800
Subject: [PATCH] 查看机房信息
---
gx_tieta/WebRoot/mobil/batt-edit.html | 53 ++++++++++++++++++++---------------------------------
1 files changed, 20 insertions(+), 33 deletions(-)
diff --git a/gx_tieta/WebRoot/mobil/batt-edit.html b/gx_tieta/WebRoot/mobil/batt-edit.html
index 2478666..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">
@@ -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