From 94e5b0bddf2b83e1591de425d3e30030fcbb1d23 Mon Sep 17 00:00:00 2001
From: CJJ <Administrator@USER-20180117QL>
Date: 星期二, 25 十二月 2018 11:50:53 +0800
Subject: [PATCH] 新建修改到APPLY
---
gx_tieta/WebRoot/mobil/ele-param2.html | 17 +++++------------
gx_tieta/WebRoot/mobil/batt-edit.html | 38 +++++++++++++++-----------------------
2 files changed, 20 insertions(+), 35 deletions(-)
diff --git a/gx_tieta/WebRoot/mobil/batt-edit.html b/gx_tieta/WebRoot/mobil/batt-edit.html
index 2478666..0e549c7 100644
--- a/gx_tieta/WebRoot/mobil/batt-edit.html
+++ b/gx_tieta/WebRoot/mobil/batt-edit.html
@@ -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,7 +482,7 @@
});
});
- //淇敼鐢垫睜缁勶紝娣诲姞鍒癇ATTINF
+ //淇敼鐢垫睜缁勶紝娣诲姞鍒癇ATTAPPLY琛�
function editBatt(){
var parm = getUpdateArredit();
console.info(parm);
diff --git a/gx_tieta/WebRoot/mobil/ele-param2.html b/gx_tieta/WebRoot/mobil/ele-param2.html
index d7929a5..2cdd9c7 100644
--- a/gx_tieta/WebRoot/mobil/ele-param2.html
+++ b/gx_tieta/WebRoot/mobil/ele-param2.html
@@ -169,8 +169,8 @@
console.warn($(t).attr("but-index")+' 淇敼');
var index = $(t).attr("but-index");
var parm = seteditparm(index);
- console.info(getCookie("eleparm"));
- //window.location.href="batt-edit.html";
+ // console.info(getCookie("eleparm"));
+ window.location.href="batt-edit.html";
return ;
}
@@ -436,18 +436,11 @@
arrTd.push(data[i].install_user); // 璁惧瀹夎浜哄憳
arrTd.push('<a onclick="getEditButIndex(this)" id="edit" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window"'+'but-index='+i+'>淇敼</a>');
Page.pageAll = data[i].num;
- groupName.push(data[i].BattGroupName);
+
num.push(data.length);
- groupId.push(data[i].BattGroupId);
+
}
- var json = JSON.stringify(groupName);
- var json1 =JSON.stringify(num);
- var json2 = JSON.stringify(groupId);
-
- setCookie("eleparmindex",json); //鐢垫睜缁勫悕绉�
- setCookie("eleparmnum",json1); //鐢垫睜缁勭紪鍙�
-
- setCookie("elegroupid",json2);
+
}else{
Page.pageAll = 0;
}
--
Gitblit v1.9.1