diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue
index 2080ff229..ce68da751 100644
--- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue
+++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue
@@ -502,6 +502,39 @@
+
+
+
+ {{ $t('cancel') }}
+
+
+
+
+
+ {{ $t('See') }}
+
+
+ {{ $t('download') }}
+
+
+
+
{{ $t('dataLoading') }}
{{ $t('Submitting') }}
@@ -2503,7 +2536,30 @@
},
viewFileClick(item) {
this.$refs.viewFileModelRef.clickButtonToUpload(item)
- }
+ },
+ pdfPreview(fileQuery) {
+ let fileName = fileQuery.fileName
+ let index1 = fileName.lastIndexOf('.')
+ let index2 = fileName.length
+ let fileSuffix = fileName.substring(index1, index2)
+ if (fileSuffix == '.pdf') {
+ window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id + '&userName=' + this.userInfo().username))
+ } else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
+ } else if (fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
+ window.open(url, '_blank')
+ } else {
+ downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
+ }
+ },
+ download(item) {
+ downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id, userName: this.userInfo().username })
+ },
}
}