From 93d3210be41f82a5a1be568aa6523d05fb294b00 Mon Sep 17 00:00:00 2001
From: qq787203167 <787203167@qq.com>
Date: Wed, 30 Mar 2022 11:57:48 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93=E5=B7=B2?=
=?UTF-8?q?=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../searchCenter/components/DocumentLibrary.vue | 4 ++--
.../documentTools/searchCenter/components/whole.vue | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)
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
}