Browse Source

fix: DEC-10012 所有数据连接里不包含其他和jdbc

qufenxi
alan 5 years ago
parent
commit
f7acf7fd5d
  1. 4
      src/modules/pages/database/database.ts
  2. 1
      src/modules/pages/database/filter/filter.ts

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

@ -56,7 +56,7 @@ export class Datebase extends BI.Widget {
if (this.model.isPlugin) {
datebaseTypes = [...datebaseTypes, ...this.allDatabaseTypes.filter(item => !item.internal)];
}
this.store.setDatebaseTypes(datebaseTypes);
this.store.setDatebaseTypes(datebaseTypes.filter(item => item.type !== connectionType.JNDI && item.type !== 'other'));
}
},
}
@ -244,7 +244,7 @@ export class Datebase extends BI.Widget {
this.store.setDatebaseTypes(this.allDatabaseTypes.filter(item => item.type === connectionType.JNDI || item.type === 'other'));
break;
default:
this.store.setDatebaseTypes(this.allDatabaseTypes);
this.store.setDatebaseTypes(this.allDatabaseTypes.filter(item => item.type !== connectionType.JNDI && item.type !== 'other'));
break;
}
}

1
src/modules/pages/database/filter/filter.ts

@ -10,6 +10,7 @@ export class Filter extends BI.BasicButton {
store: FilterModel['store']
props = {
text: '',
value: '',
baseCls: 'bi-list-item-active',
}

Loading…
Cancel
Save