showDcFjsduReport.html 1.8 KB

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