diff --git a/frontend/src/views/dataset/add/AddDB.vue b/frontend/src/views/dataset/add/AddDB.vue index bac2632835..f47fd53219 100644 --- a/frontend/src/views/dataset/add/AddDB.vue +++ b/frontend/src/views/dataset/add/AddDB.vue @@ -45,7 +45,7 @@ { this.tables = response.data + this.tableData = JSON.parse(JSON.stringify(this.tables)) }) } + }, + searchTable(val) { + if (val && val !== '') { + this.tableData = JSON.parse(JSON.stringify(this.tables.filter(ele => { return ele.includes(val) }))) + } else { + this.tableData = JSON.parse(JSON.stringify(this.tables)) + } } }, mounted() {