showDcFjDxaqzxReport.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. 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. function requestWord() {
  17. var nginxPath = [[${nginxPath}]];
  18. var adCode = [[${adCode}]];
  19. var sttm = [[${sttm}]];
  20. var ettm = [[${ettm}]];
  21. POBrowser.openWindowModeless(nginxPath + '/dc/pageoffice/preFlood/word/' + adCode + '/' + sttm + '/' + ettm, 'width=1100px;height=800px;');
  22. }
  23. $(document).ready(function () {
  24. var nginxPath = [[${nginxPath}]];
  25. var adCode = [[${adCode}]];
  26. var sttm = [[${sttm}]];
  27. var ettm = [[${ettm}]];
  28. var url = 'pageoffice://|' + localhostPath + nginxPath + '/dc/pageoffice/preFlood/word/' + adCode + '/' + sttm + '/' + ettm + '|width=1100px;height=800px;ismodal=false;';
  29. //POBrowser.openWindowModeless(nginxPath + '/dc/pageoffice/rsvr/report/word/' + ids, 'width=1100px;height=800px;');
  30. $("#openWord").attr('href', url);
  31. });
  32. function imgerrorfun() {
  33. var nginxPath = [[${nginxPath}]];
  34. var img = event.srcElement;
  35. img.src = nginxPath + "/upload/pageoffice/dc/preflood/preflood.jpg";
  36. img.onerror = null;
  37. }
  38. </script>
  39. </head>
  40. <body>
  41. <div style="width:80%;margin: auto;">
  42. <a id="openWord">
  43. <img id="imgs" th:src="${wordImgSrc}" style="width:500px;height:700px;" onerror="imgerrorfun();"/>
  44. </a>
  45. </div>
  46. </body>
  47. </html>