From fa4f1a37ba56a128ed86bce2f032bb194effa994 Mon Sep 17 00:00:00 2001 From: Superman_Main <396572590@qq.com> Date: Sat, 27 Nov 2021 20:33:55 +0800 Subject: [PATCH] feat: There is no way the, online preview --- public/static/onlyOffice/editor.html | 59 +++++- public/static/onlyOffice/js/vue.min.js | 6 + public/static/onlyOffice/onlinePreview.html | 199 ++++++++++++++++++ src/api/process.js | 9 + src/components/CustomFormComponents/File.vue | 76 +++++-- .../CustomFormComponents/js/vue.min.js | 6 + 6 files changed, 324 insertions(+), 31 deletions(-) create mode 100644 public/static/onlyOffice/js/vue.min.js create mode 100644 public/static/onlyOffice/onlinePreview.html create mode 100644 src/components/CustomFormComponents/js/vue.min.js diff --git a/public/static/onlyOffice/editor.html b/public/static/onlyOffice/editor.html index e60778481..d8200d73f 100644 --- a/public/static/onlyOffice/editor.html +++ b/public/static/onlyOffice/editor.html @@ -1,6 +1,6 @@ - + @@ -8,8 +8,10 @@ 在线编辑 - - + + + + @@ -17,12 +19,46 @@
+ + + + + +
+
+
+ + + diff --git a/src/api/process.js b/src/api/process.js index bb866770b..cfab0cb4e 100644 --- a/src/api/process.js +++ b/src/api/process.js @@ -604,6 +604,15 @@ export function getConvertFileByAttId(data) { }) } +// 获取openOffice 在线预览文件 +export function getBusStandFileByAttId(data) { + return axios({ + url: 'api/att/attFile/getBusStandFileByAttId', + method: 'get', + params: data + }) +} + // 未符合项跟踪修改状态 export function updateBaseInfo(data) { return axios({ diff --git a/src/components/CustomFormComponents/File.vue b/src/components/CustomFormComponents/File.vue index 7f43379ab..5a64f5188 100644 --- a/src/components/CustomFormComponents/File.vue +++ b/src/components/CustomFormComponents/File.vue @@ -67,7 +67,8 @@