修改禅道已知bug

This commit is contained in:
qq787203167
2022-03-30 14:23:02 +08:00
parent 9692401b1e
commit 94a25c4b7a
4 changed files with 30 additions and 23 deletions
@@ -71,6 +71,7 @@
queryCondition: 'search/document/queryCondition'
},
selectModel: '',
selectModelName: '',
queryParam: {},
selectValueTwo: ''
}
@@ -86,7 +87,7 @@
onSearch(event) {
this.queryParam[this.selectModel] = event
if (this.$refs.DocumentLibraryRef) {
this.$refs.DocumentLibraryRef.searchData(this.queryParam, this.selectModel)
this.$refs.DocumentLibraryRef.searchData(this.queryParam, this.selectModel, this.selectModelName)
}
},
wholeOnSearch(event) {
@@ -99,7 +100,7 @@
this.$refs.wholeRef.searchDataTwo(event)
} else if (this.$refs.DocumentLibraryRef) {
this.queryParam[this.selectModel] = event
this.$refs.DocumentLibraryRef.searchDataTwo(this.queryParam, this.selectModel)
this.$refs.DocumentLibraryRef.searchDataTwo(this.queryParam, this.selectModel, this.selectModelName)
}
},
getCondition() {
@@ -112,6 +113,7 @@
this.searchOption = res.result || []
if (this.searchOption.length > 0) {
this.selectModel = this.searchOption[0].db_field_name
this.selectModelName = this.searchOption[0].db_field_txt
}
} else {
this.searchOption = []
@@ -119,6 +121,14 @@
})
},
selectModelChange(event) {
let content = this.searchOption.filter((res) => {
return res.db_field_name === event
})
if (content && content.length > 0) {
this.selectModelName = content[0].db_field_txt
} else {
this.selectModelName = ''
}
this.queryParam = {}
}
}