showTacReportPdc.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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/pdc/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. //alert(screenWidth + " " + screenHeight);
  35. //POBrowser.openWindowModeless(nginxPath + '/pageoffice/tacReport/word/'+type+'/'+rgstrId+'?persId='+persId + '.' + listType + '.' + orderBy,'width=1100px;height=800px;');
  36. POBrowser.openWindowModeless(nginxPath + '/pageoffice/tacReport/pdc/word/' + type + '/' + rgstrId + '?persId=' + persId + '.' + listType + '.' + orderBy,'width=1100px;height=800px;');
  37. }*/
  38. function imgerrorfun() {
  39. // alert(1);
  40. var nginxPath = [[${nginxPath}]];
  41. var img = event.srcElement;
  42. img.src = nginxPath + "/upload/pageoffice/jc/jcbg/jcbg.jpg";
  43. img.onerror = null;
  44. }
  45. </script>
  46. </head>
  47. <body>
  48. <div style="width:80%;margin: auto;">
  49. <a id="openWord">
  50. <img id="imgs" th:src="${wordImgSrc}" style="width:500px;height:700px;" onerror="imgerrorfun();"/>
  51. </a>
  52. </div>
  53. </body>
  54. </html>