From 6c5e33d682905913b781c2c593c7b713455d1dae Mon Sep 17 00:00:00 2001 From: alan Date: Wed, 18 Sep 2019 13:53:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20KERNEL-1364=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=BF=9E=E6=8E=A5=E8=AE=BE=E7=BD=AEkerberos?= =?UTF-8?q?=E6=97=B6=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/maintain/forms/components/form.jdbc.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/modules/pages/maintain/forms/components/form.jdbc.ts b/src/modules/pages/maintain/forms/components/form.jdbc.ts index 310d5f8..8bc83cd 100644 --- a/src/modules/pages/maintain/forms/components/form.jdbc.ts +++ b/src/modules/pages/maintain/forms/components/form.jdbc.ts @@ -187,7 +187,7 @@ export class FormJdbc extends BI.Widget { }, { text: 'Kerberos', - value: 'Kerberos', + value: 'kerberos', }, ], listeners: [ @@ -208,6 +208,7 @@ export class FormJdbc extends BI.Widget { { type: FormItemXtype, name: BI.i18nText('Dec-Dcm_Connection_Form_UserName'), + invisible: !!authType, ref: (_ref: any) => { this.formUser = _ref; }, @@ -225,6 +226,7 @@ export class FormJdbc extends BI.Widget { { type: FormItemXtype, name: BI.i18nText('Dec-Dcm_Connection_Form_Password'), + invisible: !!authType, ref: (_ref: any) => { this.formPassword = _ref; }, @@ -245,7 +247,7 @@ export class FormJdbc extends BI.Widget { { type: FormItemXtype, name: BI.i18nText('Dec-Dcm_Connection_Form_Principal'), - invisible: true, + invisible: !authType, ref: (_ref: any) => { this.formPrincipal = _ref; }, @@ -263,7 +265,7 @@ export class FormJdbc extends BI.Widget { { type: FormItemXtype, name: BI.i18nText('Dec-Dcm_Connection_Form_KeyPath'), - invisible: true, + invisible: !authType, ref: (_ref: any) => { this.formKeyPath = _ref; }, @@ -668,7 +670,7 @@ export class FormJdbc extends BI.Widget { authType: this.form.authType.getValue()[0] || '', creator: Dec ? Dec.personal.username : '', principal: this.form.principal.getValue(), - keyPath: this.form.principal.getValue(), + keyPath: this.form.keyPath.getValue(), connectionPoolAttr: { initialSize: this.form.initialSize.getValue(), maxActive: this.form.maxActive.getValue(),