From cf1255a5bb566bad264d9e5b20b194554ad20f77 Mon Sep 17 00:00:00 2001 From: lixing Date: Tue, 14 Nov 2023 15:51:13 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-107734=E3=80=90=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=80=82=E9=85=8D=E3=80=91=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E5=A2=9E=E5=8A=A0fetchsize=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/connection/connection_jdbc/connection_jdbc.ts | 3 +-- src/modules/pages/maintain/forms/components/form.jdbc.ts | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/modules/pages/connection/connection_jdbc/connection_jdbc.ts b/src/modules/pages/connection/connection_jdbc/connection_jdbc.ts index 5a7069d..09990ec 100644 --- a/src/modules/pages/connection/connection_jdbc/connection_jdbc.ts +++ b/src/modules/pages/connection/connection_jdbc/connection_jdbc.ts @@ -376,9 +376,8 @@ export class ConnectionJdbc extends BI.Widget { }, { type: FormItem.xtype, - invisible: fetchSize < 0 && fetchSize !== -2, name: 'Fetchsize', - value: fetchSize === -2 ? '' : fetchSize, + value: fetchSize, }, ], }, diff --git a/src/modules/pages/maintain/forms/components/form.jdbc.ts b/src/modules/pages/maintain/forms/components/form.jdbc.ts index 20e53cc..6a9c097 100644 --- a/src/modules/pages/maintain/forms/components/form.jdbc.ts +++ b/src/modules/pages/maintain/forms/components/form.jdbc.ts @@ -1496,7 +1496,6 @@ export class FormJdbc extends BI.Widget { el: { type: BI.VerticalLayout.xtype, cls: 'bi-border-top', - invisible: fetchSize < 0 && fetchSize !== -2, items: [ { el: { @@ -1508,7 +1507,7 @@ export class FormJdbc extends BI.Widget { $value: 'fetch-size', width: EDITOR_WIDTH, allowBlank: true, - value: fetchSize === -2 ? '' : fetchSize, + value: fetchSize, watermark: 'Fetchsize', validationChecker: [ { @@ -1713,7 +1712,7 @@ export class FormJdbc extends BI.Widget { principal: this.form.principal.getValue()[0], keyPath: this.form.keyPath.getValue(), krb5Path: this.form.krb5Path.getValue(), - fetchSize: BI.isEmptyString(this.form.fetchSize.getValue()) ? -2 : BI.parseInt(this.form.fetchSize.getValue()), + fetchSize: BI.isEmptyString(this.form.fetchSize.getValue()) ? -1 : BI.parseInt(this.form.fetchSize.getValue()), // ssh usingSsh: this.form.usingSsh.isSelected(), // redirectPort: 0,