From 3c8d1904ea3ef07e2764cf17c063fd23a12bde4d Mon Sep 17 00:00:00 2001 From: alan Date: Thu, 5 Sep 2019 11:18:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20KERNEL-1222=20=E5=8A=A0=E5=85=A5url?= =?UTF-8?q?=E5=8F=8D=E8=A7=A3=E6=9E=90=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/pages/maintain/forms/components/form.jdbc.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/modules/pages/maintain/forms/components/form.jdbc.ts b/src/modules/pages/maintain/forms/components/form.jdbc.ts index 4908503..160308c 100644 --- a/src/modules/pages/maintain/forms/components/form.jdbc.ts +++ b/src/modules/pages/maintain/forms/components/form.jdbc.ts @@ -349,6 +349,15 @@ export class FormJdbc extends BI.Widget { ref: (_ref: any) => { this.form.url = _ref; }, + listeners: [{ + eventName: 'EVENT_CHANGE', + action: () => { + const urlInfo = resolveUrlInfo(this.form.url.getValue()); + this.form.host.setValue(urlInfo.host); + this.form.database.setValue(urlInfo.databaseName); + this.form.port.setValue(urlInfo.port); + }, + }], }], }, {