showDcRsvrReport.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org" lang="en">
  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. var cur = window.document.location.href;
  12. var pathname = window.document.location.pathname;
  13. var pos = cur.indexOf( pathname );
  14. var localhostPath = cur.substring( 0, pos );
  15. console.log( localhostPath );
  16. $(document).ready(function () {
  17. var nginxPath = [[${nginxPath}]];
  18. var ids = [[${ids}]];
  19. var numBzMax = [[${numBzMax}]];
  20. var numBzMin = [[${numBzMin}]];
  21. var url = 'pageoffice://|' + localhostPath + nginxPath + '/dc/pageoffice/rsvr/report/word/' + ids+'/'+numBzMax+'/'+numBzMin+'|width=1100px;height=800px;ismodal=false;';
  22. //POBrowser.openWindowModeless(nginxPath + '/dc/pageoffice/rsvr/report/word/' + ids, 'width=1100px;height=800px;');
  23. $("#openWord").attr('href', url);
  24. });
  25. function imgerrorfun() {
  26. var nginxPath = [[${nginxPath}]];
  27. var img = event.srcElement;
  28. img.src = nginxPath + "/upload/pageoffice/dc/rsvr/report.png";
  29. img.onerror = null;
  30. }
  31. </script>
  32. </head>
  33. <body>
  34. <div style="width:80%;margin: auto;">
  35. <a id="openWord">
  36. <img id="imgs" th:src="${wordImgSrc}" style="width:500px;height:700px;" onerror="imgerrorfun();"/>
  37. </a>
  38. </div>
  39. </body>
  40. </html>