diff --git a/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue b/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue index 14f5210ca..5971f6f7d 100644 --- a/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue +++ b/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue @@ -149,7 +149,7 @@ - + @@ -636,7 +636,7 @@ let newUrl = this.$router.resolve({ path: '/docManage/library/detail', query: { - id: item.id, + id: item.id.slice(0,32), title: item.title, serial_number: item.serial_number } diff --git a/jero-web/src/views/documentTools/searchCenter/components/whole.vue b/jero-web/src/views/documentTools/searchCenter/components/whole.vue index 4901f6440..f53740421 100644 --- a/jero-web/src/views/documentTools/searchCenter/components/whole.vue +++ b/jero-web/src/views/documentTools/searchCenter/components/whole.vue @@ -34,7 +34,7 @@ - + @@ -143,15 +143,15 @@ 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.file_id)) + window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id.slice(0,32))) } else if (fileSuffix == '.docx') { - let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.file_id + fileSuffix) + let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0,32) + fileSuffix) window.open(url, '_blank') } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') { - let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.file_id + fileSuffix) + let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0,32) + fileSuffix) window.open(url, '_blank') } else { - downloadFile('/sys/common/downLoadFile', fileQuery.file_name, { id: fileQuery.file_id }) + downloadFile('/sys/common/downLoadFile', fileQuery.file_name, { id: fileQuery.id.slice(0,32) }) } }, pageOnChange(page, pageSize) { @@ -201,7 +201,7 @@ let newUrl = this.$router.resolve({ path: '/docManage/library/detail', query: { - id: item.id, + id: item.id.slice(0,32), title: item.title, serial_number: item.serial_number }