From 0afa84e6de17cda97792f3acd114fffa552ee163 Mon Sep 17 00:00:00 2001
From: 81041 <81041@DESKTOP-025NVD9>
Date: 星期四, 03 一月 2019 16:15:03 +0800
Subject: [PATCH] Merge branch 'dev_lxw' of https://gitlab.com/whyclxw1/gx_tieta.git into dev_lxw
---
gx_tieta/WebRoot/mobil/ele-param2.html | 53 ++++++++++++++++++++++++++++-------------------------
1 files changed, 28 insertions(+), 25 deletions(-)
diff --git a/gx_tieta/WebRoot/mobil/ele-param2.html b/gx_tieta/WebRoot/mobil/ele-param2.html
index 20179bf..74553c3 100644
--- a/gx_tieta/WebRoot/mobil/ele-param2.html
+++ b/gx_tieta/WebRoot/mobil/ele-param2.html
@@ -203,16 +203,12 @@
<a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn ui-icon-delete ui-btn-icon-notext ui-btn-right">鍏抽棴</a>
<h1>閫夋嫨鏂板缓鐢垫睜缁勪釜鏁�</h1>
<fieldset data-role="controlgroup" >
-
-
+
<select id="newbattnum" data-mini="true">
<option value="1">鏂板缓1涓數姹犵粍</option>
<option value="2">鏂板缓2涓數姹犵粍</option>
- <option value="3">鏂板缓3涓數姹犵粍</option>
- <option value="4">鏂板缓4涓數姹犵粍</option>
</select>
-
-
+
</fieldset>
<div data-role="controlgroup" data-type="horizontal" class="mt6">
@@ -235,10 +231,11 @@
var iframePopup = '';
function getEditButIndex(t){
console.warn($(t).attr("but-index")+' 淇敼');
- var index = $(t).attr("but-index");
- var parm = seteditparm(index);
+ var index = $(t).attr("but-index");
+
+ var parm = seteditparm(t);
// console.info(getCookie("eleparm"));
- window.location.href="batt-edit.html";
+ window.location.href="batt-edit2.html";
return ;
}
@@ -257,11 +254,17 @@
$(document).ready(function(){
//setPage();
- $("#submit").click(function(){
+ $("#submit").off('click').on('click.cjj123',function(){
//newbattnum;
-
+ //var homename= $('#homename').val()
//Page.pageCurr=1;
- SearchParam();
+ //console.info(homename);
+ //console.info($('#homeName').val());
+ if($('#homeName').val()&&$('#homeName').val()!=""){
+ SearchParam();
+ }else{
+ alert("璇烽�夋嫨涓�涓満鎴�");
+ }
});
});
@@ -317,9 +320,7 @@
});
}
-
-
-
+
//
$('#homeLocation').off('click').on('click.cjj', function() {
@@ -347,7 +348,7 @@
};
- $("#sure").click(function(){
+ $("#sure").off('click').on('click.cjj123',function(){
var currentlength = Math.floor(arrTd.length/34);
if(currentlength<Page.pageSize){
setcookieCreat(currentlength-1);
@@ -373,7 +374,7 @@
function seteditparm(index){
if(arrdata.length>0){ //瀛樺叆鐨勪负鎵�鏈夊凡鏌ュ嚭鏁版嵁
console.info(arrdata);
- var arr= creatYanshouObj(arrdata,index);//鐢宠楠屾敹鏂规硶銆�
+ var arr= creatYanshouObj(arrdata,index);
return arr;
}else{
alert("璇风瓑寰呭嚑绉掑悗鍐嶆彁浜ょ敵璇�");
@@ -381,6 +382,8 @@
}
function creatYanshouObj(arrdata,index){
+ console.info(arrdata[0]);
+ console.info(index);
var StationId = arrdata[index].StationId;
//console.info(StationId);
var arr = new Array(); //鍒濆鍖栦紶鍙傛暟缁�
@@ -394,7 +397,7 @@
StationName2 : arrdata[i].StationName2, // 甯�
StationName5 : arrdata[i].StationName5, // 鍖�/鍘�
StationName3 : arrdata[i].StationName3, // 鏈烘埧鍚嶇О
- StationName4 : arrdata[i].StationName5, // 璁惧鍚嶇О
+ StationName4 : arrdata[i].StationName4, // 璁惧鍚嶇О
StationIp :arrdata[i].StationIp, //鏈烘埧ip
FBSDeviceId : arrdata[i].FBSDeviceId, //璁惧id
FbsDeviceIp : arrdata[i].FbsDeviceIp, //璁惧ip
@@ -421,8 +424,8 @@
BattProducer : arrdata[i].BattProducer, //鐢垫睜鍝佺墝
BattModel : arrdata[i].BattModel, //鐢垫睜鍨嬪彿
- BattProductDate : arrdata[i].BattProductDate+" 00:00:00", //鐢垫睜鐢熶骇鏃ユ湡
- BattInUseDate : arrdata[i].BattInUseDate+" 00:00:00", //鐢垫睜浣跨敤鏃ユ湡
+ BattProductDate : arrdata[i].BattProductDate, //鐢垫睜鐢熶骇鏃ユ湡
+ BattInUseDate : arrdata[i].BattInUseDate, //鐢垫睜浣跨敤鏃ユ湡
install_user : arrdata[i].install_user, //瀹夎浜哄憳
}
}
@@ -461,9 +464,7 @@
},
};
console.info(temp);
- searchBattLife(temp)
-
-
+ searchBattLife(temp);
}
// 鏌ヨ鍐呭
function searchBattLife(temp){
@@ -528,7 +529,8 @@
arrTd.push(data[i].BattProductDate.substr(0,10)); //鐢垫睜鐢熶骇鏃ユ湡
arrTd.push(data[i].BattInUseDate.substr(0,10)); //鎶曞叆浣跨敤鏃ユ湡
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>');
+ arrTd.push("");
+ //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;
num.push(data.length);
@@ -539,7 +541,8 @@
Page.pageAll = 0;
}
setPage();
- createTbl(tblCon, arrTh, arrTd);
+ //createTbl(tblCon, arrTh, arrTd);
+ getEditButIndex(0);
}
});
--
Gitblit v1.9.1