|
|
@ -1,6 +1,7 @@ |
|
|
|
import {shortcut} from '@core/core'; |
|
|
|
import {shortcut} from '@core/core'; |
|
|
|
import {Connection} from 'src/modules/crud/crud.typings'; |
|
|
|
import {Connection} from 'src/modules/crud/crud.typings'; |
|
|
|
import {getPluginWidgetEdit} from '../../../../app.service'; |
|
|
|
import {getPluginWidgetEdit} from '../../../../app.service'; |
|
|
|
|
|
|
|
|
|
|
|
@shortcut() |
|
|
|
@shortcut() |
|
|
|
export class FormPlugin extends BI.Widget { |
|
|
|
export class FormPlugin extends BI.Widget { |
|
|
|
static xtype = 'dec.dcm.maintain_plugin'; |
|
|
|
static xtype = 'dec.dcm.maintain_plugin'; |
|
|
@ -27,12 +28,12 @@ export class FormPlugin extends BI.Widget { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public getSubmitValue(): Connection { |
|
|
|
public getSubmitValue(): Connection { |
|
|
|
const { connectionType, connectionId } = this.options.formData; |
|
|
|
const { connectionType, connectionId, connectionName } = this.options.formData; |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
connectionId, |
|
|
|
connectionId, |
|
|
|
connectionType, |
|
|
|
connectionType, |
|
|
|
connectionName: this.plugin.getConnectionName ? this.plugin.getConnectionName() : '', |
|
|
|
connectionName: this.plugin.getConnectionName ? this.plugin.getConnectionName() : connectionName, |
|
|
|
connectionData: this.plugin.getValue(), |
|
|
|
connectionData: this.plugin.getValue(), |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|