工作组、分标委其他分发资料下载、查看添加传参
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user