showTacReportPdcNew.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 bgType = [[${bgType}]];
  20. var type = [[${type}]];
  21. var persId = [[${persId}]];
  22. var listType = [[${listType}]];
  23. var orderBy = [[${orderBy}]];
  24. var url = 'pageoffice://|' + localhostPath + nginxPath + '//pageoffice/tacReport/pdc/wordNew/' + type + '/' + rgstrId + '?persId=' + persId +'.' + bgType + '.' + listType + '.' + orderBy+ '|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 requestWord() {
  29. var nginxPath = [[${nginxPath}]];
  30. var rgstrId = [[${rgstrId}]];
  31. var bgType = [[${bgType}]];
  32. var type = [[${type}]];
  33. var persId = [[${persId}]];
  34. var listType = [[${listType}]];
  35. var orderBy = [[${orderBy}]];
  36. /!*
  37. POBrowser.openWindowModeless(nginxPath + '/pageoffice/tacReport/pdc/wordNew/' + type + '/' + rgstrId + '?persId=' + persId +'&amp;bgType=' + bgType + '&amp;listType=' + listType + '&amp;orderBy=' + orderBy,'width=1100px;height=800px;');
  38. *!/
  39. POBrowser.openWindowModeless(nginxPath + '/pageoffice/tacReport/pdc/wordNew/' + type + '/' + rgstrId + '?persId=' + persId +'.' + bgType + '.' + listType + '.' + orderBy,'width=1100px;height=800px;');
  40. }*/
  41. function imgerrorfun() {
  42. // alert(1);
  43. var nginxPath = [[${nginxPath}]];
  44. var img = event.srcElement;
  45. img.src = nginxPath + "/upload/pageoffice/jc/jcbg/jcbg.jpg";
  46. img.onerror = null;
  47. }
  48. </script>
  49. </head>
  50. <body>
  51. <div style="width:80%;margin: auto;">
  52. <a id="openWord">
  53. <img id="imgs" th:src="${wordImgSrc}" style="width:500px;height:700px;" onerror="imgerrorfun();"/>
  54. </a>
  55. </div>
  56. </body>
  57. </html>