Browse Source

Pull request #1781: DEC-18126 fix: 【自动化】平台新增插件类型数据连接(redis/json),均无法保存

Merge in DEC/decision-webui-dcm from ~DAILER/decision-webui-dcm:release/10.0 to release/10.0

* commit 'b72960c613b13ef164f3e698b0c9db2c2f2db31b':
  DEC-18126 fix: 【自动化】平台新增插件类型数据连接(redis/json),均无法保存
release/10.0
parent
commit
4de9d9eb66
  1. 11
      src/modules/pages/maintain/forms/components/form.plugin.ts

11
src/modules/pages/maintain/forms/components/form.plugin.ts

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

Loading…
Cancel
Save