| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <!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 bgType = [[${bgType}]];
- var type = [[${type}]];
- var persId = [[${persId}]];
- var listType = [[${listType}]];
- var orderBy = [[${orderBy}]];
- var url = 'pageoffice://|' + localhostPath + nginxPath + '//pageoffice/tacReport/pdc/wordNew/' + type + '/' + rgstrId + '?persId=' + persId +'.' + bgType + '.' + 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 bgType = [[${bgType}]];
- var type = [[${type}]];
- var persId = [[${persId}]];
- var listType = [[${listType}]];
- var orderBy = [[${orderBy}]];
- /!*
- POBrowser.openWindowModeless(nginxPath + '/pageoffice/tacReport/pdc/wordNew/' + type + '/' + rgstrId + '?persId=' + persId +'&bgType=' + bgType + '&listType=' + listType + '&orderBy=' + orderBy,'width=1100px;height=800px;');
- *!/
- POBrowser.openWindowModeless(nginxPath + '/pageoffice/tacReport/pdc/wordNew/' + type + '/' + rgstrId + '?persId=' + persId +'.' + bgType + '.' + 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>
|