[update] 企标制修订和企标更改流程在线编辑查看改成跳转在线编辑查看页面
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user