Browse Source

feat: KERNEL-1222 加入url反解析功能

qufenxi
alan 5 years ago
parent
commit
3c8d1904ea
  1. 9
      src/modules/pages/maintain/forms/components/form.jdbc.ts

9
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);
},
}],
}],
},
{

Loading…
Cancel
Save