Commit 98365b3675906f6d05c495a48171214d6c25f0e2

Authored by 廖磊
1 parent 55b48e0b

班次准点率导出

src/main/resources/static/pages/forms/statement/account.html
... ... @@ -114,7 +114,7 @@
114 114 }
115 115 }
116 116 initPinYinSelect2('#line',data,'');
117   -
  117 + initCl();
118 118 });
119 119 });
120 120 //重置
... ...
src/main/resources/static/pages/report/sheet/list.html
... ... @@ -49,7 +49,7 @@
49 49 </div>
50 50 </div>
51 51 </div>
52   -
  52 +<script src="/pages/mforms/singledatas/jquery.table2excel.min.js"></script>
53 53 <script>
54 54 $(function(){
55 55 // 关闭左侧栏
... ... @@ -64,10 +64,17 @@
64 64 });
65 65 })
66 66 $("#exportList").on('click',function(){
67   -
68   - $get('/sheet/exportList',params,function(result){
69   - window.open("/downloadFile/download?fileName=班次车辆人员月报表"+moment($("#startDate").val()).format("YYYYMMDD"));
  67 + $("#forms_2").table2excel({
  68 + // 不被导出的表格行的CSS class类
  69 + exclude: ".noExl",
  70 + // 导出的Excel文档的名称,(没看到作用)
  71 + name: "Excel Document Name.xlsx",
  72 + // Excel文件的名称
  73 + filename: "班次准点率"
70 74 });
  75 +// $get('/sheet/exportList',params,function(result){
  76 +// window.open("/downloadFile/download?fileName=班次车辆人员月报表"+moment($("#startDate").val()).format("YYYYMMDD"));
  77 +// });
71 78 });
72 79  
73 80  
... ...