去掉搜索中心不必要的传参
This commit is contained in:
@@ -97,9 +97,16 @@
|
||||
}
|
||||
},
|
||||
onSearch(event) {
|
||||
this.queryParam[this.selectModel] = event
|
||||
if (this.$refs.DocumentLibraryRef) {
|
||||
this.$refs.DocumentLibraryRef.searchData(this.queryParam, this.selectModel, this.selectModelName)
|
||||
if (event == '' || !event) {
|
||||
this.queryParam = {}
|
||||
if (this.$refs.DocumentLibraryRef) {
|
||||
this.$refs.DocumentLibraryRef.searchData(this.queryParam, this.selectModel, this.selectModelName)
|
||||
}
|
||||
} else {
|
||||
this.queryParam[this.selectModel] = event
|
||||
if (this.$refs.DocumentLibraryRef) {
|
||||
this.$refs.DocumentLibraryRef.searchData(this.queryParam, this.selectModel, this.selectModelName)
|
||||
}
|
||||
}
|
||||
},
|
||||
wholeOnSearch(event) {
|
||||
@@ -111,8 +118,13 @@
|
||||
if (this.$refs.wholeRef) {
|
||||
this.$refs.wholeRef.searchDataTwo(event)
|
||||
} else if (this.$refs.DocumentLibraryRef) {
|
||||
this.queryParam[this.selectModel] = event
|
||||
this.$refs.DocumentLibraryRef.searchDataTwo(this.queryParam, this.selectModel, this.selectModelName)
|
||||
if (event == '' || !event) {
|
||||
this.queryParam = {}
|
||||
this.$refs.DocumentLibraryRef.searchDataTwo(this.queryParam, this.selectModel, this.selectModelName)
|
||||
} else {
|
||||
this.queryParam[this.selectModel] = event
|
||||
this.$refs.DocumentLibraryRef.searchDataTwo(this.queryParam, this.selectModel, this.selectModelName)
|
||||
}
|
||||
}
|
||||
},
|
||||
getCondition() {
|
||||
|
||||
Reference in New Issue
Block a user