diff --git a/src/modules/pages/maintain/forms/components/form.jdbc.ts b/src/modules/pages/maintain/forms/components/form.jdbc.ts index 35e9b85..9cc9c3f 100644 --- a/src/modules/pages/maintain/forms/components/form.jdbc.ts +++ b/src/modules/pages/maintain/forms/components/form.jdbc.ts @@ -17,8 +17,6 @@ export class FormJdbc extends BI.Widget { oldPassword = ''; allDatabaseTypes = getAllDatabaseTypes(); - private schemas = [] as string[]; - testStatus: any; advancedSet: any; formUser: any; @@ -63,7 +61,7 @@ export class FormJdbc extends BI.Widget { this.oldPassword = password; const { host, port, databaseName } = resolveUrlInfo(url); const { hgap, vgap } = CONNECTION_LAYOUT; - + return { type: Vertical, hgap, @@ -350,7 +348,7 @@ export class FormJdbc extends BI.Widget { vgap: 15, disabled: true, value: schema, - items: this.schemas, + items: schema ? [{ text: schema, value:schema }] : [], ref: (_ref: any) => { this.form.schema = _ref; }, @@ -674,7 +672,6 @@ export class FormJdbc extends BI.Widget { } public setSchemas(schemas: string[]) { - this.schemas = schemas; this.form.schema.setEnable(true); if (schemas.length > 0) { const value = this.form.schema.getValue()[0];