From 2fe250ece8de95b3f70172fe5b45793ab6a3084a Mon Sep 17 00:00:00 2001 From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139> Date: 星期五, 18 一月 2019 17:30:50 +0800 Subject: [PATCH] 未审批可更改 --- gx_tieta/WebRoot/mobil/elegroup-batt.html | 104 ++++++++++++++++++++++----------------------------- 1 files changed, 45 insertions(+), 59 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/elegroup-batt.html b/gx_tieta/WebRoot/mobil/elegroup-batt.html index 603302f..6f91bca 100644 --- a/gx_tieta/WebRoot/mobil/elegroup-batt.html +++ b/gx_tieta/WebRoot/mobil/elegroup-batt.html @@ -52,6 +52,7 @@ var data = new Date; var arrTh = ['鍖呮満鏈烘埧', '鍖呮満鐢垫睜缁�']; var dataArr = new Array(); + var arr = new Array(); dataArr = []; var newArrTd = []; var tblCon = $('.tbl-container'); @@ -66,22 +67,15 @@ var endTime = new Date; $(document).ready(function(){ - - searchDisCharage(); - + var temp = getCookie("baojir"); + var tempbaojizu = getCookie("baojizu"); + temp = JSON.parse(temp); + tempbaojizu = JSON.parse(tempbaojizu); + console.info(temp); + console.info(tempbaojizu); + console.info(tempbaojizu.baoji_group_id); + searchAllBattstation(tempbaojizu.baoji_group_id); }); - - - function searchDisCharage(){ - loadshow(); - - arr=[]; - for(i=0;i<100;i++){arr[i]=i*10} - createTbl(tblCon, arrTh, arr); - loadclose(); - - } - function judgepronextshow(){ var pageNum = Math.ceil(Page.pageAll/Page.pageSize); @@ -102,51 +96,43 @@ setPageTurning(false, false); } //鍙湁涓�椤�,闅愯棌涓よ竟 } - - - //鏋勯�犳煡璇㈡潯浠跺璞� - function createSearchForm(){ - var temp={ - page:{ - pageCurr:Page.pageCurr, - pageSize:Page.pageSize, - }, - binf:{ - StationName1:$('#privince').val(), - StationName2:$('#city').val(), - StationName5: $('#country').val(), - StationName:$('#homeName').val(), - BattGroupId:$('#battgroup_name').val(), - BattProducer:battProducer, - MonVolStd:"0", - - BattGroupName1:"", - BattProductDate:startTime, - BattProductDate1:endTime, - BattInUseDate:startTime, - BattInUseDate1:endTime, - }, - uinf:{ - UId:"0", - }, - tdata:{ - test_type:"0", - record_time:startTime, - record_time1:endTime, - test_starttype:"0", - }, - mainf:{ - /* - remark:"100", - maint_done_time:startTime, - maint_done_time1:endTime, - */ - } - }; - return temp; - } - + function searchAllBattstation(baoji_group_id){ + console.info(baoji_group_id); + if(baoji_group_id!=undefined && baoji_group_id>0){ + $('#ltop .li-con').text(''); + //娓呴櫎鏈烘埧鐢垫睜缁勮〃鏍煎唴瀹� + $('#tbroom table').remove(); + var totalstationNum=0; //鎵�鏈夋満鎴挎暟 + var totalbattNum=0; //鎵�鏈夌數姹犵粍鏁� + $.post("User_battgroup_baojigroupAction!serchByInfo","us.baoji_group_id="+baoji_group_id,function(data){ + data=data.result; + model=eval("("+data+")"); + console.info(model); + //var stationList=new Array(); //鎵�鏈夋満鎴挎暟缁� + var stationidList=new Array(); //鎵�鏈夋満鎴挎暟缁勫搴旂殑id + //battstationList=new Array(); //鎵�鏈夌數姹犵粍鍜屾満鎴挎暟缁� + //battstationIdList=new Array(); //鎵�鏈夌數姹犵粍鍜屾満鎴縤d鏁扮粍 + //var allbattstation=new Array(); //瀛樻斁鎵�鏈夌殑鏈烘埧鍜岀數姹犵粍 + //var all_index=0; + //var stataion_index=0; + //var battstation_index=0; + //var stationName=""; + var index=0; + if(model.code==1 && model.data.length>0){ + console.info(model.data); + for(var i=0;i<model.data.length;i++){ + arr[index++] = model.data[i].BattGroupName; + arr[index++] = model.data[i].StationName; + stationidList.push(model.data[i].StationId); + } + } + createTbl(tblCon, arrTh, arr); + loadclose(); + }); + } + } + $(function() { $('.pre-page').on('click', 'a', function() { var isShowPre = true; -- Gitblit v1.9.1