| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 | 
							- <!DOCTYPE html>
 
- <html lang="en" xmlns:th="http://www.thymeleaf.org">
 
- <head>
 
-     <meta charset="UTF-8">
 
-     <title th:text="文件管理"></title>
 
- </head>
 
- <body>
 
- <div id="fileEdit"></div>
 
- <!--// 页面引入document的api.js-->
 
- <script type="text/javascript" src="http://47.94.222.6:9050/web-apps/apps/api/documents/api.js"></script>
 
- <script>
 
-     //office文件在线编辑、预览
 
-     new DocsAPI.DocEditor("fileEdit", // 元素id
 
-         {
 
-             type: "desktop",
 
-             width: "100%",
 
-             height: "1000px",
 
-             document: {
 
-                 title: "文档管理",
 
-                 url: "http://192.168.187.1:9999/ventanaly-sharefile/fileServer/onlyOffice/read?id=[[${id}]]",//id表示文件id,后端接口用这个id来加载文件
 
-                 fileType:"docx",//当文件类型为doc、xls、ppt时,对应用docx、xlsx、pptx否则会保存异常。
 
-                 key: "",
 
-                 lang: "zh-CN",
 
-                 permissions: {
 
-                     "download": true,//是否可下载
 
-                     "edit": true,
 
-                     "fillForms": true,
 
-                     "print": true,//是否可打印
 
-                 }
 
-             },
 
-             editorConfig: {
 
-                 "lang": "zh-CN",
 
-                 mode: "edit",//view:只读且可复制内容,edit:可编辑
 
-                 "callbackUrl": "http://192.168.187.1:9999/ventanaly-sharefile/fileServer/onlyOffice/save?id=[[${id}]]",//id表示文件id,后端接口用这个id来加载文件
 
-                 "coEditing": {
 
-                     "mode": "fast",
 
-                     "change": true
 
-                 },
 
-                 "customization": {
 
-                     "toolbarNoTabs": true,
 
-                     "autosave": false,//是否自动保存
 
-                     "forcesave": true,//定义保存按钮是否显示
 
-                     "hideRightMenu": true,
 
-                 },
 
-                 //用户信息
 
-                 "user": {
 
-                     "id": "857857", //用户ID
 
-                     "name": "小陈" //用户名称
 
-                 }
 
-             }
 
-         });
 
- </script>
 
- </body>
 
- </html>
 
 
  |