| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <!DOCTYPE html>
- <html xmlns:th="http://www.thymeleaf.org">
- <head>
- <meta charset="UTF-8"/>
- <title>Title</title>
- <!-- office插件js begin 必须引入-->
- <script type="text/javascript" th:src="${jqSrc}"></script>
- <script type="text/javascript" th:src="${poSrc}" id="po_js_main"></script>
- <!-- end -->
- <script th:inline="javascript">
- var cur = window.document.location.href;
- var pathname = window.document.location.pathname;
- var pos = cur.indexOf(pathname);
- var localhostPath = cur.substring(0, pos);
- console.log(localhostPath);
- $(document).ready(function () {
- var nginxPath = [[${nginxPath}]];
- var rgstrId = [[${rgstrId}]];
- var type = [[${type}]];
- var persId = [[${persId}]];
- var listType = [[${listType}]];
- var orderBy = [[${orderBy}]];
- var url = 'pageoffice://|' + localhostPath + nginxPath + '/pageoffice/tacReport/word/' + type + '/' + rgstrId + '?persId=' + persId + '.' + listType + '.' + orderBy + '|width=1100px;height=800px;ismodal=false;';
- //POBrowser.openWindowModeless(nginxPath + '/dc/pageoffice/rsvr/report/word/' + ids, 'width=1100px;height=800px;');
- $("#openWord").attr('href', url);
- });
- /* function requestWord() {
- var nginxPath = [[${nginxPath}]];
- var rgstrId = [[${rgstrId}]];
- var type = [[${type}]];
- var persId = [[${persId}]];
- var listType = [[${listType}]];
- var orderBy = [[${orderBy}]];
- POBrowser.openWindowModeless(nginxPath + '/pageoffice/tacReport/word/' + type + '/' + rgstrId + '?persId=' + persId + '.' + listType + '.' + orderBy, 'width=1100px;height=800px;');
- }*/
- function imgerrorfun() {
- // alert(1);
- var nginxPath = [[${nginxPath}]];
- var img = event.srcElement;
- img.src = nginxPath + "/upload/pageoffice/jc/jcbg/jcbg.jpg";
- img.onerror = null;
- }
- </script>
- </head>
- <body>
- <div style="width:80%;margin: auto;">
- <a id="openWord">
- <img id="imgs" th:src="${wordImgSrc}" style="width:500px;height:700px;" onerror="imgerrorfun();"/>
- </a>
- </div>
- </body>
- </html>
|