showDcReport.html 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html>
  2. <html 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. function requestWord(){
  12. var nginxPath = [[${nginxPath}]];
  13. var adCode = [[${adCode}]];
  14. POBrowser.openWindowModeless(nginxPath + '/dc/pageoffice/hcbg/word/'+adCode,'width=1100px;height=800px;');
  15. }
  16. function imgerrorfun() {
  17. var nginxPath = [[${nginxPath}]];
  18. var img=event.srcElement;
  19. img.src= nginxPath + "/upload/pageoffice/dc/hcbg/hcbg.jpg";
  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}" onerror="imgerrorfun();"/>
  28. </a>
  29. </div>
  30. </body>
  31. </html>