Commit 98365b3675906f6d05c495a48171214d6c25f0e2
1 parent
55b48e0b
班次准点率导出
Showing
2 changed files
with
12 additions
and
5 deletions
src/main/resources/static/pages/forms/statement/account.html
src/main/resources/static/pages/report/sheet/list.html
| @@ -49,7 +49,7 @@ | @@ -49,7 +49,7 @@ | ||
| 49 | </div> | 49 | </div> |
| 50 | </div> | 50 | </div> |
| 51 | </div> | 51 | </div> |
| 52 | - | 52 | +<script src="/pages/mforms/singledatas/jquery.table2excel.min.js"></script> |
| 53 | <script> | 53 | <script> |
| 54 | $(function(){ | 54 | $(function(){ |
| 55 | // 关闭左侧栏 | 55 | // 关闭左侧栏 |
| @@ -64,10 +64,17 @@ | @@ -64,10 +64,17 @@ | ||
| 64 | }); | 64 | }); |
| 65 | }) | 65 | }) |
| 66 | $("#exportList").on('click',function(){ | 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 |