From b72960c613b13ef164f3e698b0c9db2c2f2db31b Mon Sep 17 00:00:00 2001 From: zsmj1994 Date: Fri, 16 Apr 2021 14:42:21 +0800 Subject: [PATCH] =?UTF-8?q?DEC-18126=20fix:=20=E3=80=90=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E3=80=91=E5=B9=B3=E5=8F=B0=E6=96=B0=E5=A2=9E=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E7=B1=BB=E5=9E=8B=E6=95=B0=E6=8D=AE=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=EF=BC=88redis/json=EF=BC=89=EF=BC=8C=E5=9D=87=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/maintain/forms/components/form.plugin.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/pages/maintain/forms/components/form.plugin.ts b/src/modules/pages/maintain/forms/components/form.plugin.ts index c9bce03..8fd8fc9 100644 --- a/src/modules/pages/maintain/forms/components/form.plugin.ts +++ b/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(), }; }