fix: source和profile列表界面搜索添加name

This commit is contained in:
刘洪洪
2024-11-19 18:14:16 +08:00
parent 510d35a78e
commit ac11092997
2 changed files with 8 additions and 8 deletions

View File

@@ -106,10 +106,10 @@ export default {
},
methods: {
search (params) {
this.name = params.q
params = { ids: this.name }
if (!params.ids) {
delete params.ids
if (this.$_.isNumber(params.q) || params.q.indexOf(',') > -1) {
params = { ids: params.q }
} else {
params = { name: params.q }
}
this.pageObj.pageNo = 1
this.getTableData(params)

View File

@@ -105,10 +105,10 @@ export default {
},
methods: {
search (params) {
this.name = params.q
params = { ids: this.name }
if (!params.ids) {
delete params.ids
if (this.$_.isNumber(params.q) || params.q.indexOf(',') > -1) {
params = { ids: params.q }
} else {
params = { name: params.q }
}
this.pageObj.pageNo = 1
this.getTableData(params)