| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <!DOCTYPE html>
- <html xmlns:th="http://www.thymeleaf.org" lang="en">
- <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 ids = [[${ids}]];
- var numBzMax = [[${numBzMax}]];
- var numBzMin = [[${numBzMin}]];
- var url = 'pageoffice://|' + localhostPath + nginxPath + '/dc/pageoffice/rsvr/report/word/' + ids+'/'+numBzMax+'/'+numBzMin+'|width=1100px;height=800px;ismodal=false;';
- //POBrowser.openWindowModeless(nginxPath + '/dc/pageoffice/rsvr/report/word/' + ids, 'width=1100px;height=800px;');
- $("#openWord").attr('href', url);
- });
- function imgerrorfun() {
- var nginxPath = [[${nginxPath}]];
- var img = event.srcElement;
- img.src = nginxPath + "/upload/pageoffice/dc/rsvr/report.png";
- 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>
|