-
- {{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 {