Browse Source

fix: KERNEL-1364 修复数据连接设置kerberos时的bug

qufenxi
alan 5 years ago
parent
commit
6c5e33d682
  1. 10
      src/modules/pages/maintain/forms/components/form.jdbc.ts

10
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(),

Loading…
Cancel
Save