From 1097fac43ffc7c67ec9bb2db3f6d887f9014f991 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 15:20:01 +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/views/phoneView/searchList.vue | 142 ++++++++++++++++++-- jero-web/src/views/phoneView/toDoCenter.vue | 14 +- 2 files changed, 143 insertions(+), 13 deletions(-) diff --git a/jero-web/src/views/phoneView/searchList.vue b/jero-web/src/views/phoneView/searchList.vue index 4030ed850..9c1fe57b6 100644 --- a/jero-web/src/views/phoneView/searchList.vue +++ b/jero-web/src/views/phoneView/searchList.vue @@ -3,9 +3,25 @@
@@ -20,7 +36,10 @@
- {{$t('searchScope')}}:{{searchValue}} + {{$t('searchScope')}}: + + {{selectModelName}}: + {{searchValue}}
@@ -33,8 +52,7 @@ >
-
- {{item.serial_number || '--'}} +
{{$t('category')}} - {{item.module_type || '--'}} +
@@ -72,7 +90,7 @@
{{$t('category')}} - {{item.module_type || '--'}} +
@@ -91,7 +109,7 @@
{{$t('category')}} - {{item.module_type || '--'}} +
@@ -205,12 +223,18 @@ wholeUrl: 'search/document/getFullTextInfoList', documentLibraryUrl: 'search/document/getParagraphInfoList', problemKnowledgeBaseUrl: '/search/document/getProblemKnowledgeBasePage', - monthlyReportRegulationsUrl: '/search/lawsMonthlyReport/page' - } + monthlyReportRegulationsUrl: '/search/lawsMonthlyReport/page', + queryCondition: 'search/document/queryCondition' + }, + selectModel: '', + option: [], + searchOption: [], + selectModelNameSearch: '' } }, mounted() { document.title = 'NIO GRP' + this.getCondition() if (this.$route.query.searchValue) { this.value = this.$route.query.searchValue this.searchValue = this.$route.query.searchValue @@ -220,10 +244,63 @@ } }, methods: { + selectModelChange(event) { + let content = this.option.filter((res) => { + return res.value === event + }) + if (content && content.length > 0) { + this.selectModelNameSearch = content[0].text + } else { + this.selectModelNameSearch = '' + } + }, + getCondition() { + let query = { + flag: 1, + searchFlag: 1 + } + getAction(this.url.queryCondition, query).then((res) => { + if (res.success) { + let searchOption = res.result || [] + if (searchOption.length > 0) { + this.selectModel = searchOption[0].db_field_name + this.selectModelNameSearch = searchOption[0].db_field_txt + for (let i = 0; i < searchOption.length; i++) { + this.option.push({ + text: searchOption[i].db_field_txt, + value: searchOption[i].db_field_name + }) + } + } + } else { + this.searchOption = [] + } + }) + }, iconClick() { this.$router.go(-1) }, onSearch() { + this.searchValue = this.value + this.selectModelName = this.selectModelNameSearch + 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() + }, + onClear() { + this.searchValue = '' + this.value = '' + this.selectModelName = '' if (this.activeTab == 'whole') { this.list = [] } else if (this.activeTab == 'documentLibrary') { @@ -239,6 +316,9 @@ this.getList() }, activeChange() { + this.searchValue = '' + this.value = '' + this.selectModelName = '' if (this.activeTab == 'whole') { this.list = [] } else if (this.activeTab == 'documentLibrary') { @@ -310,6 +390,8 @@ }) } else if (this.activeTab == 'documentLibrary') { url = this.url.documentLibraryUrl + params.mapOne[this.selectModel] = this.value + params.selectValue = '' this.getDocumentLibrary(url, params) } else if (this.activeTab == 'problemKnowledgeBase') { url = this.url.problemKnowledgeBaseUrl @@ -588,7 +670,49 @@ .content-box-left-monthly-En { width: 2.11rem; } + ::v-deep .highlight-class { - color: #21c9cc!important; + color: #21c9cc !important; + } + + ::v-deep .van-dropdown-menu { + height: 1.1rem; + } + + ::v-deep .van-dropdown-menu__title--active { + color: #21c9cc; + } + + ::v-deep .van-dropdown-item__option--active { + color: #21c9cc; + } + + ::v-deep .van-dropdown-item__option--active .van-dropdown-item__icon { + color: #21c9cc; + } + + ::v-deep .van-dropdown-menu .van-dropdown-menu__bar { + height: 1.1rem; + background: #F5F6F7; + font-size: 0.38rem; + box-shadow: none; + width: 2rem; + border-top-left-radius: 0.2rem; + border-bottom-left-radius: 0.2rem; + border-right: 0.02rem #E6E7EC solid; + margin-left: 0.2rem; + } + + ::v-deep .van-dropdown-menu__title::after { + display: none; + } + + .search-text { + padding: 0; + } + + .search-text .van-search__content { + border-top-left-radius: 0 !important; + border-bottom-left-radius: 0 !important; } \ No newline at end of file diff --git a/jero-web/src/views/phoneView/toDoCenter.vue b/jero-web/src/views/phoneView/toDoCenter.vue index 38b0875fd..c8cd27d8f 100644 --- a/jero-web/src/views/phoneView/toDoCenter.vue +++ b/jero-web/src/views/phoneView/toDoCenter.vue @@ -2,10 +2,10 @@
@@ -237,6 +237,12 @@ // this.getToDoProcess() }, methods: { + onSearch(){ + + }, + onClear(){ + + }, onChange(value) { if (value == 'search') { this.$router.push({ @@ -500,7 +506,7 @@ } ::v-deep .van-search { - padding: 0 0 0 0.2rem; + padding: 0; } ::v-deep .van-search__action {