From cf62668c660860e9288dab21c4066927a26cb787 Mon Sep 17 00:00:00 2001
From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139>
Date: 星期六, 29 十二月 2018 10:02:37 +0800
Subject: [PATCH] 筛选跳转页面
---
gx_tieta/WebRoot/mobil/ele-param2.html | 41 +++++++++++++++++++++++------------------
1 files changed, 23 insertions(+), 18 deletions(-)
diff --git a/gx_tieta/WebRoot/mobil/ele-param2.html b/gx_tieta/WebRoot/mobil/ele-param2.html
index 8798da5..e4075f3 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,8 +231,9 @@
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-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(); //鍒濆鍖栦紶鍙傛暟缁�
@@ -528,7 +531,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 +543,8 @@
Page.pageAll = 0;
}
setPage();
- createTbl(tblCon, arrTh, arrTd);
+ //createTbl(tblCon, arrTh, arrTd);
+ getEditButIndex(0);
}
});
--
Gitblit v1.9.1