showDcSkReport.html 1.2 KB

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