showPblmList.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 pblmId = [[${pblmId}]];
  17. POBrowser.openWindowModeless(nginxPath + '/pageoffice/pblmlist/word/'+type+'/'+rgstrId+'?persId='+persId+'.'+pblmId,'width=1100px;height=800px;');
  18. }
  19. // $(document).ready(function(){
  20. // document.getElementById("re").click();
  21. // });
  22. // window.onload=function (ev) {
  23. // document.getElementById("re").click();
  24. // }
  25. setTimeout(function(){
  26. // alert("Hello");
  27. document.getElementById("re").click();
  28. }, 1000);
  29. </script>
  30. </head>
  31. <body>
  32. <a id="re" href="javascript:void(0)" onclick="requestWord()">打开文档</a>
  33. </body>
  34. </html>