Browse Source

Merge pull request #48 in DEC/decision-webui-dcm from ~ALAN/decision-webui-dcm:feature/10.0 to feature/10.0

* commit '6c5e33d682905913b781c2c593c7b713455d1dae':
  fix: KERNEL-1364 修复数据连接设置kerberos时的bug
qufenxi
alan 5 years ago
parent
commit
3d5c7be32f
  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', text: 'Kerberos',
value: 'Kerberos', value: 'kerberos',
}, },
], ],
listeners: [ listeners: [
@ -208,6 +208,7 @@ export class FormJdbc extends BI.Widget {
{ {
type: FormItemXtype, type: FormItemXtype,
name: BI.i18nText('Dec-Dcm_Connection_Form_UserName'), name: BI.i18nText('Dec-Dcm_Connection_Form_UserName'),
invisible: !!authType,
ref: (_ref: any) => { ref: (_ref: any) => {
this.formUser = _ref; this.formUser = _ref;
}, },
@ -225,6 +226,7 @@ export class FormJdbc extends BI.Widget {
{ {
type: FormItemXtype, type: FormItemXtype,
name: BI.i18nText('Dec-Dcm_Connection_Form_Password'), name: BI.i18nText('Dec-Dcm_Connection_Form_Password'),
invisible: !!authType,
ref: (_ref: any) => { ref: (_ref: any) => {
this.formPassword = _ref; this.formPassword = _ref;
}, },
@ -245,7 +247,7 @@ export class FormJdbc extends BI.Widget {
{ {
type: FormItemXtype, type: FormItemXtype,
name: BI.i18nText('Dec-Dcm_Connection_Form_Principal'), name: BI.i18nText('Dec-Dcm_Connection_Form_Principal'),
invisible: true, invisible: !authType,
ref: (_ref: any) => { ref: (_ref: any) => {
this.formPrincipal = _ref; this.formPrincipal = _ref;
}, },
@ -263,7 +265,7 @@ export class FormJdbc extends BI.Widget {
{ {
type: FormItemXtype, type: FormItemXtype,
name: BI.i18nText('Dec-Dcm_Connection_Form_KeyPath'), name: BI.i18nText('Dec-Dcm_Connection_Form_KeyPath'),
invisible: true, invisible: !authType,
ref: (_ref: any) => { ref: (_ref: any) => {
this.formKeyPath = _ref; this.formKeyPath = _ref;
}, },
@ -668,7 +670,7 @@ export class FormJdbc extends BI.Widget {
authType: this.form.authType.getValue()[0] || '', authType: this.form.authType.getValue()[0] || '',
creator: Dec ? Dec.personal.username : '', creator: Dec ? Dec.personal.username : '',
principal: this.form.principal.getValue(), principal: this.form.principal.getValue(),
keyPath: this.form.principal.getValue(), keyPath: this.form.keyPath.getValue(),
connectionPoolAttr: { connectionPoolAttr: {
initialSize: this.form.initialSize.getValue(), initialSize: this.form.initialSize.getValue(),
maxActive: this.form.maxActive.getValue(), maxActive: this.form.maxActive.getValue(),

Loading…
Cancel
Save