|
|
@ -349,6 +349,15 @@ export class FormJdbc extends BI.Widget { |
|
|
|
ref: (_ref: any) => { |
|
|
|
ref: (_ref: any) => { |
|
|
|
this.form.url = _ref; |
|
|
|
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); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}], |
|
|
|
}], |
|
|
|
}], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|