Commit 8871838a64af8b604f97122720ae45d346e564eb

Authored by 娄高锋
1 parent 6f5e02dd

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

src/main/resources/static/pages/forms/statement/scheduleDaily_df.html
... ... @@ -124,7 +124,7 @@
124 124 </tr>
125 125 </thead>
126 126  
127   - <tbody class="scheduleDaily_1">
  127 + <tbody class="scheduleDaily_df_1">
128 128  
129 129 </tbody>
130 130 <tr>
... ... @@ -212,7 +212,7 @@
212 212 <td><label>司晚</label></td>
213 213 <td><label>售晚</label></td>
214 214 </tr>
215   - <tbody class="scheduleDaily_2">
  215 + <tbody class="scheduleDaily_df_2">
216 216  
217 217 </tbody>
218 218 <tr>
... ... @@ -275,7 +275,7 @@
275 275 <td>快</td>
276 276 <td>慢</td>
277 277 </tr>
278   - <tbody class="scheduleDaily_3">
  278 + <tbody class="scheduleDaily_df_3">
279 279  
280 280 </tbody>
281 281 </table>
... ... @@ -480,23 +480,23 @@
480 480 $("#export").removeAttr("disabled");
481 481 var i = layer.load(2);
482 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 484 $("#jls").html(result[0].jls);
485 485 $("#jsjss").html(result[0].sjgl);
486 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 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 492 divFrom1 = window.document.getElementById('forms');
493 493 divFrom2 = window.document.getElementById('forms_1');
494 494 divFrom2.style.width=divFrom1.offsetWidth+"px";
495 495 });
496 496 $.get('/realSchedule/realScheduleList',{line:line,date:date,type:"query"},function(result){
497 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 500 divFrom1 = window.document.getElementById('forms');
501 501 divFrom3 = window.document.getElementById('forms_2');
502 502 divFrom3.style.width=divFrom1.offsetWidth+"px";
... ... @@ -518,11 +518,11 @@
518 518 $("c").html("全月");
519 519 $("#export").removeAttr("disabled");
520 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 551  
552 552 });
553 553 </script>
554   -<script type="text/html" id="scheduleDaily_1">
  554 +<script type="text/html" id="scheduleDaily_df_1">
555 555 {{each list as obj i}}
556 556 <tr >
557 557 <td>{{obj.xlName}}</td>
... ... @@ -600,17 +600,17 @@
600 600 </tr>
601 601 {{/if}}
602 602 </script>
603   -<script type="text/html" id="scheduleDaily_2">
  603 +<script type="text/html" id="scheduleDaily_df_2">
604 604 {{each list as obj i}}
605 605 {{if i%5 == 0}}
606 606 <tr>
607 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 615 {{/if}}
616 616 </td>
... ... @@ -626,7 +626,7 @@
626 626 </tr>
627 627 {{/if}}
628 628 </script>
629   -<script type="text/html" id="scheduleDaily_3">
  629 +<script type="text/html" id="scheduleDaily_df_3">
630 630 {{each list as obj i}}
631 631 {{if i%3 == 0}}
632 632 <tr>
... ...