showBaseReport.html 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html lang="zh-Hans" xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <title>Title</title>
  6. <!-- office插件js begin 必须引入-->
  7. <script type="text/javascript" th:src="${jqSrc}"></script>
  8. <script type="text/javascript" th:src="${poSrc}" id="po_js_main"></script>
  9. <!-- end -->
  10. <script th:inline="javascript">
  11. var nginxPath = [[${nginxPath}]];
  12. var type = [[${type}]];
  13. var paramMap = [[${paramMap}]];
  14. function requestWord() {
  15. POBrowser.openWindowModeless(nginxPath + '/dc/pageoffice/report/word?paramMap=' + paramMap, 'width=1100px;height=800px;');
  16. }
  17. function imgerrorfun() {
  18. var img = event.srcElement;
  19. img.src = nginxPath + '/upload/pageoffice/dc/' + type + '/report.png';
  20. img.onerror = null;
  21. }
  22. </script>
  23. </head>
  24. <body>
  25. <div style="width:80%;margin: auto;">
  26. <a href="javascript:requestWord();">
  27. <img id="imgs" th:src="${wordImgSrc}" style="width:500px;height:700px;" onerror="imgerrorfun();"/>
  28. </a>
  29. </div>
  30. </body>
  31. </html>