Browse Source

DEC-22408 feat:【迭代】【数据连接支持SSH及SSL】调整gap

feature/x
Cauchy.Ke 3 years ago
parent
commit
f427f41fd8
  1. 3
      src/modules/components/file_chooser/file_chooser.ts
  2. 15
      src/modules/pages/connection/connection_jdbc/connection_jdbc.ts
  3. 23
      src/modules/pages/maintain/forms/components/form.jdbc.ts

3
src/modules/components/file_chooser/file_chooser.ts

@ -37,12 +37,13 @@ export class FileChooser extends BI.Widget {
return { return {
type: BI.VerticalAdaptLayout.xtype, type: BI.VerticalAdaptLayout.xtype,
height: 20, height: 24,
items: [ items: [
{ {
type: BI.SignEditor.xtype, type: BI.SignEditor.xtype,
cls: 'bi-border bi-focus-shadow', cls: 'bi-border bi-focus-shadow',
width, width,
height: 22,
watermark, watermark,
title: value, title: value,
value, value,

15
src/modules/pages/connection/connection_jdbc/connection_jdbc.ts

@ -152,9 +152,9 @@ export class ConnectionJdbc extends BI.Widget {
], ],
}, },
{ {
el: {
type: BI.VerticalLayout.xtype, type: BI.VerticalLayout.xtype,
tgap: -15, bgap: vgap,
vgap,
invisible: true, invisible: true,
ref: (_ref: VerticalLayout) => { ref: (_ref: VerticalLayout) => {
this.sshSet = _ref; this.sshSet = _ref;
@ -193,6 +193,7 @@ export class ConnectionJdbc extends BI.Widget {
}, },
], ],
}, },
},
// ssl设置 // ssl设置
{ {
type: Collapse.xtype, type: Collapse.xtype,
@ -209,9 +210,9 @@ export class ConnectionJdbc extends BI.Widget {
], ],
}, },
{ {
el: {
type: BI.VerticalLayout.xtype, type: BI.VerticalLayout.xtype,
tgap: -15, bgap: vgap,
vgap,
invisible: true, invisible: true,
ref: (_ref: VerticalLayout) => { ref: (_ref: VerticalLayout) => {
this.sslSet = _ref; this.sslSet = _ref;
@ -240,6 +241,7 @@ export class ConnectionJdbc extends BI.Widget {
}, },
], ],
}, },
},
// 更多设置 // 更多设置
{ {
type: Collapse.xtype, type: Collapse.xtype,
@ -255,9 +257,9 @@ export class ConnectionJdbc extends BI.Widget {
], ],
}, },
{ {
el: {
type: BI.VerticalLayout.xtype, type: BI.VerticalLayout.xtype,
tgap: -15, bgap: vgap,
vgap,
invisible: true, invisible: true,
ref: (_ref: VerticalLayout) => { ref: (_ref: VerticalLayout) => {
this.advancedSet = _ref; this.advancedSet = _ref;
@ -308,6 +310,7 @@ export class ConnectionJdbc extends BI.Widget {
}, },
], ],
}, },
},
], ],
}; };
} }

23
src/modules/pages/maintain/forms/components/form.jdbc.ts

@ -639,15 +639,16 @@ export class FormJdbc extends BI.Widget {
], ],
}, },
{ {
el: {
type: BI.VerticalLayout.xtype, type: BI.VerticalLayout.xtype,
ref: (_ref: VerticalLayout) => { ref: (_ref: VerticalLayout) => {
this.sshSet = _ref; this.sshSet = _ref;
}, },
bgap: vgap,
invisible: true, invisible: true,
items: [ items: [
{ {
type: FormItem.xtype, type: FormItem.xtype,
bgap: -15,
name: BI.i18nText('Dec-Dcm_Connection_Tunnel', 'SSH'), name: BI.i18nText('Dec-Dcm_Connection_Tunnel', 'SSH'),
forms: [ forms: [
{ {
@ -671,11 +672,12 @@ export class FormJdbc extends BI.Widget {
], ],
}, },
{ {
el: {
type: BI.VerticalLayout.xtype, type: BI.VerticalLayout.xtype,
ref: (_ref: VerticalLayout) => { ref: (_ref: VerticalLayout) => {
this.sshForm = _ref; this.sshForm = _ref;
}, },
vgap, bgap: vgap,
invisible: !usingSsh, invisible: !usingSsh,
items: [ items: [
{ {
@ -794,8 +796,10 @@ export class FormJdbc extends BI.Widget {
}, },
], ],
}, },
},
], ],
}, },
},
// SSL设置 // SSL设置
{ {
type: Collapse.xtype, type: Collapse.xtype,
@ -812,15 +816,16 @@ export class FormJdbc extends BI.Widget {
], ],
}, },
{ {
el: {
type: BI.VerticalLayout.xtype, type: BI.VerticalLayout.xtype,
ref: (_ref: VerticalLayout) => { ref: (_ref: VerticalLayout) => {
this.sslSet = _ref; this.sslSet = _ref;
}, },
bgap: vgap,
invisible: true, invisible: true,
items: [ items: [
{ {
type: FormItem.xtype, type: FormItem.xtype,
bgap: -15,
name: BI.i18nText('Dec-Dcm_Connection_Tunnel', 'SSL'), name: BI.i18nText('Dec-Dcm_Connection_Tunnel', 'SSL'),
forms: [ forms: [
{ {
@ -844,11 +849,12 @@ export class FormJdbc extends BI.Widget {
], ],
}, },
{ {
el: {
type: BI.VerticalLayout.xtype, type: BI.VerticalLayout.xtype,
ref: (_ref: VerticalLayout) => { ref: (_ref: VerticalLayout) => {
this.sslForm = _ref; this.sslForm = _ref;
}, },
vgap, bgap: vgap,
invisible: !usingSsl, invisible: !usingSsl,
items: [ items: [
{ {
@ -914,12 +920,13 @@ export class FormJdbc extends BI.Widget {
}, },
], ],
}, },
},
], ],
}, },
},
// 高级设置 // 高级设置
{ {
type: Collapse.xtype, type: Collapse.xtype,
bgap: -15,
width: 100, width: 100,
name: BI.i18nText('Dec-Dcm_Connection_Form_Database_More_Setting'), name: BI.i18nText('Dec-Dcm_Connection_Form_Database_More_Setting'),
listeners: [ listeners: [
@ -932,9 +939,9 @@ export class FormJdbc extends BI.Widget {
], ],
}, },
{ {
el: {
type: BI.VerticalLayout.xtype, type: BI.VerticalLayout.xtype,
vgap, bgap: vgap,
tgap: -15,
invisible: true, invisible: true,
ref: (_ref: VerticalLayout) => { ref: (_ref: VerticalLayout) => {
this.advancedSet = _ref; this.advancedSet = _ref;
@ -942,7 +949,6 @@ export class FormJdbc extends BI.Widget {
items: [ items: [
{ {
type: FormItem.xtype, type: FormItem.xtype,
tgap: 15,
name: BI.i18nText('Dec-Dcm_Connection_Form_Database_Initial_Size'), name: BI.i18nText('Dec-Dcm_Connection_Form_Database_Initial_Size'),
forms: [ forms: [
{ {
@ -1153,6 +1159,7 @@ export class FormJdbc extends BI.Widget {
}, },
], ],
}, },
},
], ],
}; };
} }

Loading…
Cancel
Save