Commit 8871838a64af8b604f97122720ae45d346e564eb

Authored by 娄高锋
1 parent 6f5e02dd

处理报表模板未套用数据的问题。

src/main/resources/static/pages/forms/statement/scheduleDaily_df.html
@@ -124,7 +124,7 @@ @@ -124,7 +124,7 @@
124 </tr> 124 </tr>
125 </thead> 125 </thead>
126 126
127 - <tbody class="scheduleDaily_1"> 127 + <tbody class="scheduleDaily_df_1">
128 128
129 </tbody> 129 </tbody>
130 <tr> 130 <tr>
@@ -212,7 +212,7 @@ @@ -212,7 +212,7 @@
212 <td><label>司晚</label></td> 212 <td><label>司晚</label></td>
213 <td><label>售晚</label></td> 213 <td><label>售晚</label></td>
214 </tr> 214 </tr>
215 - <tbody class="scheduleDaily_2"> 215 + <tbody class="scheduleDaily_df_2">
216 216
217 </tbody> 217 </tbody>
218 <tr> 218 <tr>
@@ -275,7 +275,7 @@ @@ -275,7 +275,7 @@
275 <td>快</td> 275 <td>快</td>
276 <td>慢</td> 276 <td>慢</td>
277 </tr> 277 </tr>
278 - <tbody class="scheduleDaily_3"> 278 + <tbody class="scheduleDaily_df_3">
279 279
280 </tbody> 280 </tbody>
281 </table> 281 </table>
@@ -480,23 +480,23 @@ @@ -480,23 +480,23 @@
480 $("#export").removeAttr("disabled"); 480 $("#export").removeAttr("disabled");
481 var i = layer.load(2); 481 var i = layer.load(2);
482 $get('/realSchedule/statisticsDaily',{line:line,date:date,xlName:xlName,type:"query"},function(result){ 482 $get('/realSchedule/statisticsDaily',{line:line,date:date,xlName:xlName,type:"query"},function(result){
483 - var scheduleDaily_1 = template('scheduleDaily_1',{list:result}); 483 + var scheduleDaily_df_1 = template('scheduleDaily_df_1',{list:result});
484 $("#jls").html(result[0].jls); 484 $("#jls").html(result[0].jls);
485 $("#jsjss").html(result[0].sjgl); 485 $("#jsjss").html(result[0].sjgl);
486 $("#dbdp").html(result[0].dbdp); 486 $("#dbdp").html(result[0].dbdp);
487 - $('#forms .scheduleDaily_1').html(scheduleDaily_1); 487 + $('#forms .scheduleDaily_df_1').html(scheduleDaily_df_1);
488 }); 488 });
489 $.get('/realSchedule/queryUserInfo',{line:line,date:date,state:2,type:"query"},function(result){ 489 $.get('/realSchedule/queryUserInfo',{line:line,date:date,state:2,type:"query"},function(result){
490 - var scheduleDaily_2 = template('scheduleDaily_2',{list:result});  
491 - $('#forms_1 .scheduleDaily_2').html(scheduleDaily_2); 490 + var scheduleDaily_df_2 = template('scheduleDaily_df_2',{list:result});
  491 + $('#forms_1 .scheduleDaily_df_2').html(scheduleDaily_df_2);
492 divFrom1 = window.document.getElementById('forms'); 492 divFrom1 = window.document.getElementById('forms');
493 divFrom2 = window.document.getElementById('forms_1'); 493 divFrom2 = window.document.getElementById('forms_1');
494 divFrom2.style.width=divFrom1.offsetWidth+"px"; 494 divFrom2.style.width=divFrom1.offsetWidth+"px";
495 }); 495 });
496 $.get('/realSchedule/realScheduleList',{line:line,date:date,type:"query"},function(result){ 496 $.get('/realSchedule/realScheduleList',{line:line,date:date,type:"query"},function(result){
497 getTime(result); 497 getTime(result);
498 - var scheduleDaily_3 = template('scheduleDaily_3',{list:result});  
499 - $('#forms_2 .scheduleDaily_3').html(scheduleDaily_3); 498 + var scheduleDaily_df_3 = template('scheduleDaily_df_3',{list:result});
  499 + $('#forms_2 .scheduleDaily_df_3').html(scheduleDaily_df_3);
500 divFrom1 = window.document.getElementById('forms'); 500 divFrom1 = window.document.getElementById('forms');
501 divFrom3 = window.document.getElementById('forms_2'); 501 divFrom3 = window.document.getElementById('forms_2');
502 divFrom3.style.width=divFrom1.offsetWidth+"px"; 502 divFrom3.style.width=divFrom1.offsetWidth+"px";
@@ -518,11 +518,11 @@ @@ -518,11 +518,11 @@
518 $("c").html("全月"); 518 $("c").html("全月");
519 $("#export").removeAttr("disabled"); 519 $("#export").removeAttr("disabled");
520 $get('/realSchedule/statisticsDaily',{line:line,date:date,xlName:xlName,type:"query"},function(result){ 520 $get('/realSchedule/statisticsDaily',{line:line,date:date,xlName:xlName,type:"query"},function(result){
521 - var scheduleDaily_1 = template('scheduleDaily_1',{list:result});  
522 - $('#forms .scheduleDaily_1').html(scheduleDaily_1); 521 + var scheduleDaily_df_1 = template('scheduleDaily_df_1',{list:result});
  522 + $('#forms .scheduleDaily_df_1').html(scheduleDaily_df_1);
523 }); 523 });
524 - $('#forms .scheduleDaily_2').html("");  
525 - $('#forms .scheduleDaily_3').html(""); 524 + $('#forms .scheduleDaily_df_2').html("");
  525 + $('#forms .scheduleDaily_df_3').html("");
526 526
527 }); */ 527 }); */
528 528
@@ -551,7 +551,7 @@ @@ -551,7 +551,7 @@
551 551
552 }); 552 });
553 </script> 553 </script>
554 -<script type="text/html" id="scheduleDaily_1"> 554 +<script type="text/html" id="scheduleDaily_df_1">
555 {{each list as obj i}} 555 {{each list as obj i}}
556 <tr > 556 <tr >
557 <td>{{obj.xlName}}</td> 557 <td>{{obj.xlName}}</td>
@@ -600,17 +600,17 @@ @@ -600,17 +600,17 @@
600 </tr> 600 </tr>
601 {{/if}} 601 {{/if}}
602 </script> 602 </script>
603 -<script type="text/html" id="scheduleDaily_2"> 603 +<script type="text/html" id="scheduleDaily_df_2">
604 {{each list as obj i}} 604 {{each list as obj i}}
605 {{if i%5 == 0}} 605 {{if i%5 == 0}}
606 <tr> 606 <tr>
607 {{/if}} 607 {{/if}}
608 - <td colspan="2">{{obj[3]}}</td>  
609 - <td colspan="2">{{obj[2]}}</td>  
610 - <td>{{obj[1]}}/{{obj[4]}}</td>  
611 - <td>{{if obj[5] !=null}}  
612 - {{obj[5]}}/  
613 - {{obj[6]}} 608 + <td colspan="2">{{obj.lpName}}</td>
  609 + <td colspan="2">{{obj.clZbh}}</td>
  610 + <td>{{obj.jGh}}/{{obj.jName}}</td>
  611 + <td>{{if obj.sGh !=null}}
  612 + {{obj.sGh}}/
  613 + {{obj.sName}}
614 614
615 {{/if}} 615 {{/if}}
616 </td> 616 </td>
@@ -626,7 +626,7 @@ @@ -626,7 +626,7 @@
626 </tr> 626 </tr>
627 {{/if}} 627 {{/if}}
628 </script> 628 </script>
629 -<script type="text/html" id="scheduleDaily_3"> 629 +<script type="text/html" id="scheduleDaily_df_3">
630 {{each list as obj i}} 630 {{each list as obj i}}
631 {{if i%3 == 0}} 631 {{if i%3 == 0}}
632 <tr> 632 <tr>