修改搜索查询

This commit is contained in:
qq787203167
2022-02-12 17:34:15 +08:00
parent cac1d0b73b
commit 6348b30939
2 changed files with 9 additions and 15 deletions
+4 -6
View File
@@ -73,13 +73,11 @@
checkboxList: [],
tableAll: false,
indeterminate: false,
searchParmes: {}
}
},
mounted() {
eventBUs.$on('searchQuery', target => {
this.searchParmes = target
this.getTableList()
eventBUs.$on('searchQuery', search => {
this.getTableList(search)
})
eventBUs.$on('searchReset', target => {
this.getTableList()
@@ -118,9 +116,9 @@
})
}
},
getTableList() {
getTableList(search) {
let params = {
...searchParmes,
...search,
}
getAction(this.url.tableList, params).then((res) => {
if (res.success) {