| | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="HideColumn"><i class="layui-icon layui-icon-form"></i>éèå设置</button> |
| | | </div> |
| | |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "QC_ErrManagerLedgerReport_Source"; |
| | | var HSourceName = []; //çäº§èµæºåç§° |
| | | //#endregion |
| | |
| | | case 'HideColumn': |
| | | get_HideColumn(); |
| | | break; |
| | | //å¯¼åºæé® |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | }; |
| | | }); |
| | | //éç½®æé® |
| | |
| | | option.data = data1.data; |
| | | |
| | | table.render(option); |
| | | ins = table.render(option); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.close(wait); |
| | |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |