showDcReportComm.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 apiPath = [[${apiPath}]];
  14. POBrowser.openWindowModeless(nginxPath + apiPath
  15. ,'width=1100px;height=800px;');
  16. }
  17. function imgerrorfun() {
  18. var nginxPath = [[${nginxPath}]];
  19. var imgSrcPath = [[${imgSrcPath}]];
  20. var img=event.srcElement;
  21. img.src= nginxPath + imgSrcPath;
  22. img.onerror=null;
  23. }
  24. </script>
  25. </head>
  26. <body>
  27. <div style="width:80%;margin: auto;">
  28. <a href="javascript:requestWord();">
  29. <img id="imgs" th:src="${wordImgSrc}" style="width:500px;height:700px;" onerror="imgerrorfun();"/>
  30. </a>
  31. </div>
  32. </body>
  33. </html>