工作组、分标委其他分发资料下载、查看添加传参

This commit is contained in:
zhaoxiao
2021-12-23 11:22:25 +08:00
parent 55e5a6816c
commit 38c0279dfa
+2 -2
View File
@@ -83,7 +83,7 @@ export default {
* @param record
*/
handleDownload(record) {
downloadFile(`sys/common/download/${ record.fileId }`, record.fileName)
downloadFile(`sys/common/download/${ record.fileId }`, record.fileName, {type: 'download'})
},
/**
* 预览
@@ -91,7 +91,7 @@ export default {
*/
preview(record) {
if (record && record.fileId) {
const fileFullUrl = `${ window._CONFIG['domianWebSocketURL'] }/sys/common/download/${ record.fileId }?token=${ Vue.ls.get(ACCESS_TOKEN) }&fullfilename=${ record.fileName }`
const fileFullUrl = `${ window._CONFIG['domianWebSocketURL'] }/sys/common/download/${ record.fileId }?token=${ Vue.ls.get(ACCESS_TOKEN) }&fullfilename=${ record.fileName }&type=view`
let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(fileFullUrl) }`
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
window.open(url)