showTacReport.html 2.2 KB

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