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) { if (this.model.isPlugin) {
datebaseTypes = [...datebaseTypes, ...this.allDatabaseTypes.filter(item => !item.internal)]; 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')); this.store.setDatebaseTypes(this.allDatabaseTypes.filter(item => item.type === connectionType.JNDI || item.type === 'other'));
break; break;
default: default:
this.store.setDatebaseTypes(this.allDatabaseTypes); this.store.setDatebaseTypes(this.allDatabaseTypes.filter(item => item.type !== connectionType.JNDI && item.type !== 'other'));
break; break;
} }
} }

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

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

Loading…
Cancel
Save