From 629f916db34cf63b5290a0c021060f322a58b75b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Thu, 8 Jun 2023 13:42:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=89=8B=E6=9C=BA=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/utils/kkfileView.js | 3 -- jero-web/src/views/phoneView/searchList.vue | 46 ++++++++++++++------- 2 files changed, 30 insertions(+), 19 deletions(-) diff --git a/jero-web/src/utils/kkfileView.js b/jero-web/src/utils/kkfileView.js index a27529f3b..18bb49ab7 100644 --- a/jero-web/src/utils/kkfileView.js +++ b/jero-web/src/utils/kkfileView.js @@ -1,8 +1,6 @@ import { Base64 } from 'js-base64' import { Toast } from 'vant' -window._CONFIG['domianPreviewURL'] = 'http://localhost:8082/jero-boot' -window._CONFIG['domianWebImgURL'] = 'http://localhost:8082/jero-boot' let downLoadFileUrl = window._CONFIG['domianPreviewURL'] + '/sys/common/download' let downLoadImgUrl = window._CONFIG['domianWebImgURL'] + '/sys/common/download' @@ -10,7 +8,6 @@ export function kkFileView(fileName, fileId) { let index1 = fileName.lastIndexOf('.') let index2 = fileName.length let fileSuffix = fileName.substring(index1, index2) - window._CONFIG['onlinePreviewDomainURL'] = 'http://localhost:8012/onlinePreview' if (fileSuffix == '.docx' || fileSuffix == '.doc' || fileSuffix == '.pdf' || fileSuffix == '.xlsx' || fileSuffix == '.xls') { let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(downLoadFileUrl + '/' + fileId + fileSuffix) window.open(url) diff --git a/jero-web/src/views/phoneView/searchList.vue b/jero-web/src/views/phoneView/searchList.vue index 74791ce9f..4030ed850 100644 --- a/jero-web/src/views/phoneView/searchList.vue +++ b/jero-web/src/views/phoneView/searchList.vue @@ -5,6 +5,7 @@ @@ -19,7 +20,7 @@
- {{$t('searchScope')}}:{{value}} + {{$t('searchScope')}}:{{searchValue}}
@@ -39,7 +40,7 @@ {{$t('title')}} - {{item.title || '--'}} +
-
- {{item.title || '--'}} +
-
- {{item.title || '--'}} +
-
- {{item.serial_number || '--'}} -
+
{{$t('title')}} - {{item.title || '--'}} +
-
- {{item.title || '--'}} -
+
-
- {{item.title || '--'}} -
+
{{$t('uploadedBy')}} @@ -205,6 +198,7 @@ finished: false, language: localStorage.getItem('language'), pageNo: 0, + searchValue: '', downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download', downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download', url: { @@ -219,6 +213,7 @@ document.title = 'NIO GRP' if (this.$route.query.searchValue) { this.value = this.$route.query.searchValue + this.searchValue = this.$route.query.searchValue } if (this.$route.query.activeTab) { this.activeTab = this.$route.query.activeTab @@ -228,6 +223,21 @@ iconClick() { this.$router.go(-1) }, + onSearch() { + if (this.activeTab == 'whole') { + this.list = [] + } else if (this.activeTab == 'documentLibrary') { + this.documentLibraryList = [] + } else if (this.activeTab == 'problemKnowledgeBase') { + this.problemKnowledgeBaseList = [] + } else if (this.activeTab == 'monthlyReportRegulations') { + this.monthlyReportRegulationsList = [] + } + this.loading = true + this.finished = false + this.pageNo = 1 + this.getList() + }, activeChange() { if (this.activeTab == 'whole') { this.list = [] @@ -276,6 +286,7 @@ let params = { pageNo: this.pageNo, pageSize: 10, + selectValue: this.value, mapOne: {}, mapTwo: {} } @@ -577,4 +588,7 @@ .content-box-left-monthly-En { width: 2.11rem; } + ::v-deep .highlight-class { + color: #21c9cc!important; + } \ No newline at end of file