|
|
|
@ -41,7 +41,11 @@ export class MaintainForm extends BI.Widget {
|
|
|
|
|
} |
|
|
|
|
const id = BI.UUID(); |
|
|
|
|
const testConnection = () => { |
|
|
|
|
this.store.testConnection(this.form.getSubmitValue()).then(re => { |
|
|
|
|
const formValue = this.form.getSubmitValue(); |
|
|
|
|
if (this.isEdit) { |
|
|
|
|
formValue.connectionId = this.connectionName; |
|
|
|
|
} |
|
|
|
|
this.store.testConnection(formValue).then(re => { |
|
|
|
|
if (re && re.errorCode) { |
|
|
|
|
this.testStatus.setFail(re.errorMsg); |
|
|
|
|
} else if (re.data) { |
|
|
|
|