Browse Source

REPORT-90357 fix: 修改主机、端口后清空密码

release/11.0
Austin.Duan 2 years ago
parent
commit
4f09f02a5d
  1. 16
      src/modules/pages/maintain/forms/components/form.jdbc.ts

16
src/modules/pages/maintain/forms/components/form.jdbc.ts

@ -1015,6 +1015,14 @@ export class FormJdbc extends BI.Widget {
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Host'), watermark: BI.i18nText('Dec-Dcm_Connection_Form_Host'),
allowBlank: false, allowBlank: false,
value: sshIp || 'hostname', value: sshIp || 'hostname',
listeners: [
{
eventName: BI.Editor.EVENT_CHANGE,
action: () => {
this.form.sshSecret.setValue("");
}
}
]
}, },
], ],
}, },
@ -1038,6 +1046,14 @@ export class FormJdbc extends BI.Widget {
valueRangeConfig, valueRangeConfig,
], ],
value: String(sshPort || 22), value: String(sshPort || 22),
listeners: [
{
eventName: BI.Editor.EVENT_CHANGE,
action: () => {
this.form.sshSecret.setValue("");
}
}
]
}, },
], ],
}, },

Loading…
Cancel
Save