From cb17f57c1c6408787934ed500a4fb37adefd6d5c Mon Sep 17 00:00:00 2001
From: hdw <496960745@qq.com>
Date: 星期四, 01 十一月 2018 11:36:53 +0800
Subject: [PATCH] 电池续航能力历史查询
---
gx_tieta/WebRoot/ele_statistics.jsp | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/gx_tieta/WebRoot/ele_statistics.jsp b/gx_tieta/WebRoot/ele_statistics.jsp
index a3bfb88..32e491d 100644
--- a/gx_tieta/WebRoot/ele_statistics.jsp
+++ b/gx_tieta/WebRoot/ele_statistics.jsp
@@ -254,13 +254,17 @@
var battinfo_list = new Array();
var formjson;
$(document).ready(function(){
+ $(window).resize(function() {
+ setTblWidth($('#tbHead'), $('#maintence_infor'));
+ });
+
$("#container a").eq(0).click(function(){
var jsontemp = $("#search_form").serialize();
if(jsontemp != formjson){
$('#pageCurr').val(1);
formjson = jsontemp;
}
- loading.showLoading();
+ var load = layer.load(1);
//console.info($("#search_form").serialize());
var temp = createSearchForm();
var json = JSON.stringify(temp);
@@ -268,7 +272,7 @@
$.post("Batt_Maint_DealarmAction_serchByConditionNew","result="+json,function(data){
//alert(123);
data=eval("("+data.result+")");
- //console.info(data);
+ console.info(data);
if(data.code==1 && data.data.length>0){
data=data.data;
battinfo_list = data;
@@ -330,11 +334,13 @@
$('#tbHead').text('');
$('#maintence_infor').text('');
//alert(newArrTd);
- //alert(ArrayTh);
+ //alert(ArrayTh);
+ //createFullTbl($('#tbHead'));
createTable('tbHead','tbFixed',ArrayTh.length,ArrayTh,newArrTd);
createTable('maintence_infor','eleTab',ArrayTh.length,ArrayTh,newArrTd);
setTblSize($('#tbHead'), $('#maintenced_infor'));
+ setTblWidth($('#tbHead'), $('#maintence_infor'));
//榧犳爣鐐瑰嚮琛ㄦ牸瑙﹀彂浜嬩欢
$('#maintence_infor .eleTab tbody tr').mousedown(function(e){
$('#maintence_infor .eleTab tbody tr').css('background-color','');
@@ -377,10 +383,11 @@
$('#pageCurr').val(1);
$('#maintence_infor').text('');
}
- loading.hideLoading();
+
+ layer.close(load);
}).error(function(){
noContent.showNoContent("鏌ヨ澶辫触,璇锋鏌ョ綉缁滆繛鎺ワ紒");
- loading.hideLoading();
+ layer.close(load);
});
});
});
--
Gitblit v1.9.1