From f93221000c2be32a3f4162415b9e9a725c166c60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167>
Date: Fri, 27 Oct 2023 15:36:40 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A4=E8=AF=81=E6=B8=85?=
=?UTF-8?q?=E5=8D=95=E7=9A=84=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/DocumentLibrary.vue | 50 +++++++++++++------
1 file changed, 36 insertions(+), 14 deletions(-)
diff --git a/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue b/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue
index a703aee1f..d68268d33 100644
--- a/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue
+++ b/jero-web/src/views/documentTools/searchCenter/components/DocumentLibrary.vue
@@ -62,7 +62,8 @@
{{$t('reset')}}
-
{{$t('query')}}
+
{{$t('query')}}
+
@@ -106,13 +107,29 @@
{{$t('Push')}}
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
@@ -246,7 +263,7 @@
components: {
libraryPush
},
- mixins:[ResizeHeader, ResizeColumnProvide],
+ mixins: [ResizeHeader, ResizeColumnProvide],
data() {
return {
searchOption: [],
@@ -363,7 +380,7 @@
searchQueryOne: {},
orderBy: '1',
orderByField: '',
- language:localStorage.getItem('language'),
+ language: localStorage.getItem('language')
}
},
watch: {
@@ -632,10 +649,15 @@
postAction(this.url.getInfoList, query).then((res) => {
if (res.success) {
this.dataSource = res.result.records
+ let text = this.queryParam[this.selectModel] ? this.queryParam[this.selectModel].split(' ') : []
this.dataSource.forEach((val) => {
- if (val[this.selectModel] && val[this.selectModel].includes(this.queryParam[this.selectModel])) {
- val[this.selectModel] = val[this.selectModel].replace(this.queryParam[this.selectModel], `${this.queryParam[this.selectModel]}`)
- }
+ text.forEach(ol => {
+ // if (val[this.selectModel] && val[this.selectModel].includes(ol)) {
+ if (val[this.selectModel]) {
+ val[this.selectModel] = val[this.selectModel].replace(ol, `${ol}`)
+ }
+ // }
+ })
})
this.total = res.result.total
this.loading = false
@@ -703,7 +725,7 @@
} 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'){
+ } 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 {
@@ -741,7 +763,7 @@
}