[update] 企标制修订和企标更改流程在线编辑查看改成跳转在线编辑查看页面

This commit is contained in:
lideqin
2024-04-24 10:12:37 +08:00
parent 0d22f5a403
commit a3f60b207b
3 changed files with 25 additions and 26 deletions
+17
View File
@@ -81,3 +81,20 @@ export const onlineEditor = async (params, fileId) => {
window.open(url, '_blank')
return fileInfo.id
}
// 跳转在线编辑查看
export const onlineEditorView = async (fileId) => {
let fileInfo
if (fileId) {
fileInfo = await queryFileInfo(fileId)
}
if (!fileInfo) {
return false
}
// 获取用户信息
const userInfo = Vue.ls.get(USER_INFO)
// 截取文件后缀名
const fileSuffix = (fileInfo.fileName ? fileInfo.fileName.split('.')[fileInfo.fileName.split('.').length - 1] : '').toLowerCase()
const url = `${window._CONFIG.onlyOfficeUrl}/previewHistoryPage?filePath=${fileInfo.editFilePath}&fileName=${fileInfo.fileName}&fileType=${fileSuffix}&fileId=${fileInfo.id}&key=${fileInfo.id}&userId=${userInfo.id}&userName=${userInfo.realname}&fileInfo={}`
window.open(url, '_blank')
}