Commit 8e4c24d525eeec5b7eeba92f3cc0a1ef1e780255

Authored by 廖磊
1 parent a7f1581a

闵行到离站

src/main/resources/static/pages/oil/list_ph.html
@@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
5 text-overflow: ellipsis; 5 text-overflow: ellipsis;
6 } 6 }
7 7
8 - #ylbtable .ps-scrollbar-y{  
9 - min-height:100px;  
10 - }  
11 </style> 8 </style>
12 <div class="page-head"> 9 <div class="page-head">
13 <div class="page-title"> 10 <div class="page-title">
@@ -168,7 +165,7 @@ @@ -168,7 +165,7 @@
168 </div> 165 </div>
169 </div> 166 </div>
170 167
171 - <div id="ylbtable" class="portlet-body table-container " style="height: calc(100% - 200px);overflow: hidden;position: absolute;background: #fff;"> 168 + <div id="ylbtable" class="portlet-body table-container " style="height: calc(100% + 100px);overflow: hidden;position: absolute;background: #fff;">
172 169
173 <table 170 <table
174 class="table table-striped table-bordered table-hover table-checkable" 171 class="table table-striped table-bordered table-hover table-checkable"
src/main/resources/static/pages/report/inoutstation/inoutstation.html
@@ -70,7 +70,7 @@ @@ -70,7 +70,7 @@
70 </div> 70 </div>
71 <div style="display: inline-block; margin-left: 5px;"> 71 <div style="display: inline-block; margin-left: 5px;">
72 <input class="btn btn-default" type="button" id="query" value="查询" /> 72 <input class="btn btn-default" type="button" id="query" value="查询" />
73 -<!-- <input class="btn btn-default" type="button" id="export" value="导出" /> --> 73 + <input class="btn btn-default" type="button" id="export" value="导出" />
74 </div> 74 </div>
75 </div> 75 </div>
76 76
@@ -127,9 +127,7 @@ @@ -127,9 +127,7 @@
127 layer.msg("请选择方向"); 127 layer.msg("请选择方向");
128 }else{ 128 }else{
129 $get('/report/queryStrinon',{line:line,zd:zdlx},function(result){ 129 $get('/report/queryStrinon',{line:line,zd:zdlx},function(result){
130 - console.log(result);  
131 $get('/report/queryInOutStrtions',{line:line,date:date,zd:zdlx,lzsj:lzsj},function(result2){ 130 $get('/report/queryInOutStrtions',{line:line,date:date,zd:zdlx,lzsj:lzsj},function(result2){
132 - console.log(result2);  
133 // /* getTime(result); */ 131 // /* getTime(result); */
134 var ludan_ll_1 = template('ludan_ll_1',{lists:result,list:result2}); 132 var ludan_ll_1 = template('ludan_ll_1',{lists:result,list:result2});
135 // // 把渲染好的模版html文本追加到表格中 133 // // 把渲染好的模版html文本追加到表格中
@@ -172,19 +170,16 @@ @@ -172,19 +170,16 @@
172 170
173 171
174 $("#export").on("click",function(){ 172 $("#export").on("click",function(){
175 - var rq=$("#date").val();  
176 - var line=$("#line").val();  
177 - var nbbm=$("#nbbm").val();  
178 - var fcsj=$("#fcsj_xx").val();  
179 - var ddsj=$("#ddsj_xx").val();  
180 - if(fcsj==""){  
181 - layer.msg("没数据");  
182 - }else{  
183 - $get('/report/exportQueryListZdxx',{clzbh:nbbm,date:rq,line:line,fcsj:fcsj,ddsj:ddsj},function(result){  
184 - window.open("/downloadFile/download?fileName=班次到离站");  
185 - });  
186 - }  
187 - 173 + var curTbl = document.getElementById("forms");
  174 + var oXL = new ActiveXObject("Excel.Application");
  175 + var oWB = oXL.Workbooks.Add();
  176 + var oSheet = oWB.ActiveSheet;
  177 + var sel = document.body.createTextRange();
  178 + sel.moveToElementText(curTbl);
  179 + sel.select();
  180 + sel.execCommand("Copy");
  181 + oSheet.Paste();
  182 + oXL.Visible = true;
188 }); 183 });
189 184
190 }); 185 });
@@ -193,8 +188,13 @@ @@ -193,8 +188,13 @@
193 <script type="text/html" id="ludan_ll_1"> 188 <script type="text/html" id="ludan_ll_1">
194 {{each list as obj i}} 189 {{each list as obj i}}
195 <tr> 190 <tr>
196 - <td>{{obj.bc}}</td>  
197 - <td><label>{{obj.nbbm}}</label></td> 191 + {{if i==0}}
  192 + <td>序号</td>
  193 + <td>内部编码</label></td>
  194 + {{else}}
  195 + <td>{{i}}</td>
  196 + <td><label>{{obj.nbbm}}</label></td>
  197 + {{/if}}
198 {{each lists as o j}} 198 {{each lists as o j}}
199 {{if i==0}} 199 {{if i==0}}
200 <td> 200 <td>
@@ -206,8 +206,7 @@ @@ -206,8 +206,7 @@
206 <td {{if obj[o.stationCode] =='y'}}style="color: red"{{/if}}> 206 <td {{if obj[o.stationCode] =='y'}}style="color: red"{{/if}}>
207 {{if obj[(o.stationCode)+'in']!=''}} 207 {{if obj[(o.stationCode)+'in']!=''}}
208 <label> I {{obj[(o.stationCode)+'in']}}</label> 208 <label> I {{obj[(o.stationCode)+'in']}}</label>
209 - {{/if}}  
210 - <br/> 209 + {{/if}}<br/>
211 {{if obj[(o.stationCode)+'out']!=''}} 210 {{if obj[(o.stationCode)+'out']!=''}}
212 <label> O{{obj[(o.stationCode)+'out']}}</label> 211 <label> O{{obj[(o.stationCode)+'out']}}</label>
213 {{/if}} 212 {{/if}}