From e5e64cb7354ce4e9f4ef02057789a9ea0f85eb56 Mon Sep 17 00:00:00 2001
From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139>
Date: 星期二, 08 一月 2019 09:41:14 +0800
Subject: [PATCH] 修改
---
gx_tieta/WebRoot/mobil/batt-edit.html | 48 ++++++++++++++++++++----------------------------
1 files changed, 20 insertions(+), 28 deletions(-)
diff --git a/gx_tieta/WebRoot/mobil/batt-edit.html b/gx_tieta/WebRoot/mobil/batt-edit.html
index 9421b51..10c9e62 100644
--- a/gx_tieta/WebRoot/mobil/batt-edit.html
+++ b/gx_tieta/WebRoot/mobil/batt-edit.html
@@ -105,25 +105,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 +349,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 +413,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 +482,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