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