showTacReport.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 rgstrId = [[${rgstrId}]];
  14. var type = [[${type}]];
  15. var persId = [[${persId}]];
  16. var listType = [[${listType}]];
  17. var orderBy = [[${orderBy}]];
  18. POBrowser.openWindowModeless(nginxPath + '/pageoffice/tacReport/word/'+type+'/'+rgstrId+'?persId='+persId + '.' + listType + '.' + orderBy,'width=1100px;height=800px;');
  19. }
  20. function imgerrorfun() {
  21. // alert(1);
  22. var nginxPath = [[${nginxPath}]];
  23. var img=event.srcElement;
  24. img.src= nginxPath + "/upload/pageoffice/jc/jcbg/jcbg.jpg";
  25. img.onerror=null;
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <div style="width:80%;margin: auto;">
  31. <a href="javascript:requestWord();">
  32. <img id="imgs" th:src="${wordImgSrc}" onerror="imgerrorfun();"/>
  33. </a>
  34. </div>
  35. </body>
  36. </html>