修改 企业标准文件预览处理
This commit is contained in:
@@ -54,7 +54,12 @@ async function preview (attId, type) {
|
|||||||
this.$message.error('文档未转换成功或本地读取不到该文档')
|
this.$message.error('文档未转换成功或本地读取不到该文档')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else if (file.previewAttId) {
|
||||||
|
url = viewer + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + file.previewAttId)
|
||||||
|
} else if (!file.previewAttId) {
|
||||||
|
this.$message.error('文档未转换成功或本地读取不到该文档')
|
||||||
|
return
|
||||||
|
}else {
|
||||||
url = kkFileViewUrl + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(file.downLoadUrl)) + '&watermarkTxt=' + encodeURIComponent(store.getters.userInfo.userName)
|
url = kkFileViewUrl + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(file.downLoadUrl)) + '&watermarkTxt=' + encodeURIComponent(store.getters.userInfo.userName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user