对接法规技术评估

This commit is contained in:
qq787203167
2022-07-14 15:56:43 +08:00
parent d292b1424b
commit 87cab0fa11
5 changed files with 91 additions and 36 deletions
@@ -92,6 +92,7 @@
title: this.$t('relevantSections'),
align: 'center',
dataIndex: 'relatedSection',
ellipsis: true,
width: 180
},
{
@@ -220,7 +220,11 @@
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
window.open(url, '_blank')
} else {
this.$message.warning(this.$t('theDoesNotSupportPreview'))
if (item.createBy == this.userInfo().username){
downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
}else{
this.$message.warning(this.$t('theDoesNotSupportPreview'))
}
}
},
download(item) {