rpt_print.js 603 B

1234567891011121314151617181920
  1. /**
  2. * Created by Tony on 2018/4/24.
  3. */
  4. let rptPrintHelper = {
  5. preview: function () {
  6. if (zTreeOprObj.currentRptPageRst) {
  7. // window.location.href = '/rpt_print';
  8. sessionStorage.currentPageData = JSON.stringify(zTreeOprObj.currentRptPageRst);
  9. sessionStorage.pageSize = rptControlObj.getCurrentPageSize();
  10. sessionStorage.orientation = rptControlObj.getCurrentOrientation();
  11. window.open('/rpt_print');
  12. } else {
  13. sessionStorage.currentPageData = null;
  14. }
  15. },
  16. print: function () {
  17. //
  18. }
  19. };