From f7acf7fd5d385add807d115750b8331883b5f0e1 Mon Sep 17 00:00:00 2001 From: alan Date: Wed, 25 Sep 2019 10:15:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20DEC-10012=20=E6=89=80=E6=9C=89=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=BF=9E=E6=8E=A5=E9=87=8C=E4=B8=8D=E5=8C=85=E5=90=AB?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E5=92=8Cjdbc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/pages/database/database.ts | 4 ++-- src/modules/pages/database/filter/filter.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/pages/database/database.ts b/src/modules/pages/database/database.ts index 5c40d6c..07a114e 100644 --- a/src/modules/pages/database/database.ts +++ b/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; } } diff --git a/src/modules/pages/database/filter/filter.ts b/src/modules/pages/database/filter/filter.ts index 741b4a4..b4ea449 100644 --- a/src/modules/pages/database/filter/filter.ts +++ b/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', }