From d479f580ddb1e47f3de37c672f55e009f7d1a445 Mon Sep 17 00:00:00 2001
From: qq787203167 <787203167@qq.com>
Date: Thu, 18 Aug 2022 14:54:59 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=B3=95=E8=A7=84=E6=9C=88?=
=?UTF-8?q?=E6=8A=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/DocumentLibrary.vue | 35 ++++++++++----
.../components/monthlyReportRegulations.vue | 48 +++++++++++++++----
.../components/problemKnowledgeBase.vue | 2 +-
.../searchCenter/components/whole.vue | 46 +++++++++++++++---
.../documentTools/searchCenter/index.vue | 6 +++
5 files changed, 109 insertions(+), 28 deletions(-)
diff --git a/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue b/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue
index e4abc53ed..db047cf8f 100644
--- a/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue
+++ b/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue
@@ -133,33 +133,34 @@
@click="checkedClick(item)"
:class="{ 'null-input':item.checked }">
-
+
@@ -167,21 +168,21 @@
>
-
-
-
+
@@ -684,7 +685,7 @@
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))
+ 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') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
@@ -720,6 +721,10 @@
height: 18px !important;
line-height: 18px !important;
}
+
+ .tooltip-index {
+ max-width: calc(100% - 300px) !important;
+ }
\ No newline at end of file
diff --git a/jero-web/src/views/documentTools/searchCenter/components/monthlyReportRegulations.vue b/jero-web/src/views/documentTools/searchCenter/components/monthlyReportRegulations.vue
index 85b4932ba..a1e8e6ef0 100644
--- a/jero-web/src/views/documentTools/searchCenter/components/monthlyReportRegulations.vue
+++ b/jero-web/src/views/documentTools/searchCenter/components/monthlyReportRegulations.vue
@@ -10,7 +10,7 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -60,7 +82,7 @@
return {
checkboxText: [],
url: {
- getInfoList: 'search/document/getFullTextInfoList'
+ getInfoList: '/search/lawsMonthlyReport/page'
},
loading: false,
conList: [],
@@ -95,12 +117,18 @@
methods: {
...mapGetters(['userInfo']),
checkedClick(item) {
- if (item.checked) {
- this.checkboxText = this.checkboxText.filter(res => {
- return res !== item.id
- })
- } else {
- this.checkboxText.push(item.id)
+ let fileName = item.file_name
+ 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=' + item.file_id + '&userName=' + this.userInfo().username))
+ } else if (fileSuffix == '.docx') {
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
+ window.open(url, '_blank')
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.file_id + fileSuffix)
+ window.open(url, '_blank')
}
},
ResetSearch() {
@@ -190,7 +218,7 @@
}
.tooltip-index {
- max-width: 600px !important;
+ max-width: calc(100% - 300px) !important;
}