Browse Source

fix: DEC-10013 修复搜索数据连接时的bug

qufenxi
alan 5 years ago
parent
commit
27c6bb5501
  1. 4
      src/modules/pages/database/database.ts

4
src/modules/pages/database/database.ts

@ -27,10 +27,10 @@ export class Datebase extends BI.Widget {
if (search) {
this.store.setFilter('');
this.store.setDatebaseTypes(this.allDatabaseTypes.filter(item => item.text.toLowerCase().includes(search.toLowerCase())));
} else {
} else if (!this.model.filter) {
this.store.setFilter(DATEBASE_FILTER_TYPE.COMMONLY);
this.search.setValue(search);
}
this.search.setValue(search);
},
filter: (filter: string) => {
this.filter.setValue(filter);

Loading…
Cancel
Save