Browse Source

Merge pull request #7551 in DEC/decision-webui-dcm from release/11.0 to bugfix/11.0

* commit '717d10b44ddb5d0cace7c019eaa0c3b63ca3b083':
  REPORT-94752【视觉验收】数据连接 fix:修复视觉问题
  REPORT-94752【视觉验收】数据连接 fix:修复视觉问题
  REPORT-94654 fix:数据连接异常报错问题修复
bugfix/11.0
superman 2 years ago
parent
commit
62e2f253ce
  1. 1
      src/modules/components/test_status/tip_icon/tip_fail.ts
  2. 6
      src/modules/constants/constant.ts
  3. 2
      src/modules/pages/maintain/maintain.ts
  4. 28
      src/modules/pages/setting/setting.ts
  5. 5
      src/modules/title/title_maintain/title_maintain.ts

1
src/modules/components/test_status/tip_icon/tip_fail.ts

@ -88,6 +88,7 @@ export class TipFail extends BI.Widget {
type: BI.Button.xtype, type: BI.Button.xtype,
text: retryText, text: retryText,
handler: () => { handler: () => {
this.store.setIsCollapse(false);
this.fireEvent(TipFail.EVENT_RELOAD); this.fireEvent(TipFail.EVENT_RELOAD);
}, },
}, },

6
src/modules/constants/constant.ts

@ -703,7 +703,7 @@ export const DATA_BASE_TYPES = [
type: 'jdbc', type: 'jdbc',
hasSchema: true, hasSchema: true,
kerberos: false, kerberos: false,
}, },
{ {
text: 'TDSQL', text: 'TDSQL',
databaseType: 'tdsql', databaseType: 'tdsql',
@ -837,7 +837,7 @@ export const DEFAULT_JDBC_POOL = {
}; };
export const CONNECTION_LAYOUT = { export const CONNECTION_LAYOUT = {
hgap: 5, hgap: 10,
vgap: 15, vgap: 15,
labelHeight: 24, labelHeight: 24,
}; };
@ -878,4 +878,4 @@ export const YES_OR_NO = [
text: BI.i18nText('Dec-Basic_No'), text: BI.i18nText('Dec-Basic_No'),
value: 0, value: 0,
} }
] ]

2
src/modules/pages/maintain/maintain.ts

@ -28,7 +28,7 @@ export class Maintain extends BI.Widget {
return { return {
type: BI.VTapeLayout.xtype, type: BI.VTapeLayout.xtype,
hgap: 5, hgap: 16,
items: [ items: [
{ {
type: BI.VerticalAdaptLayout.xtype, type: BI.VerticalAdaptLayout.xtype,

28
src/modules/pages/setting/setting.ts

@ -44,23 +44,25 @@ export class TimeOutSetting extends BI.Widget {
}, { }, {
type: 'bi.vertical', type: 'bi.vertical',
cls: 'bi-card', cls: 'bi-card',
hgap: 10,
vgap: 10, vgap: 10,
items: [ items: [
{ {
type: 'bi.vertical_adapt', el:{
cls: 'bi-border-bottom', type: 'bi.vertical_adapt',
height: 32, cls: 'bi-border-bottom',
items: [{ height: 40,
type: 'bi.label', items: [{
textAlign: 'left', type: 'bi.label',
width: 120, textAlign: 'left',
cls: 'dec-font-weight-bold', width: 120,
text: BI.i18nText('Dec-Dcm_Connection_Timeout_Detection'), cls: 'dec-font-weight-bold',
}] text: BI.i18nText('Dec-Dcm_Connection_Timeout_Detection'),
}]
}, tgap: -10, hgap: 16,
}, },
{ {
type: 'bi.vertical_adapt', type: 'bi.vertical_adapt',
hgap: 16,
items: [{ items: [{
type: 'dec.label.editor.item', type: 'dec.label.editor.item',
text: BI.i18nText('Dec-Over_Time'), text: BI.i18nText('Dec-Over_Time'),
@ -83,7 +85,7 @@ export class TimeOutSetting extends BI.Widget {
lgap: 10, lgap: 10,
}] }]
}, },
] ]
}], }],
ref: function (_ref) { ref: function (_ref) {
@ -91,4 +93,4 @@ export class TimeOutSetting extends BI.Widget {
}, },
}; };
} }
} }

5
src/modules/title/title_maintain/title_maintain.ts

@ -15,13 +15,13 @@ export class TitleMaintain extends BI.Widget {
items: [{ items: [{
type: BI.VerticalAdaptLayout.xtype, type: BI.VerticalAdaptLayout.xtype,
height: 40, height: 40,
hgap: 16,
items: [ items: [
{ {
type: BI.Button.xtype, type: BI.Button.xtype,
$value: 'title-maintain-cancel', $value: 'title-maintain-cancel',
text: BI.i18nText('BI-Basic_Cancel'), text: BI.i18nText('BI-Basic_Cancel'),
clear: true, clear: true,
_rgap: 16,
handler: () => { handler: () => {
this.store.setIsCopy(false); this.store.setIsCopy(false);
this.store.setPageIndex(PAGE_INDEX.CONNECTION); this.store.setPageIndex(PAGE_INDEX.CONNECTION);
@ -30,6 +30,7 @@ export class TitleMaintain extends BI.Widget {
}, },
{ {
type: BI.Button.xtype, type: BI.Button.xtype,
_rgap: 16,
$value: 'title-maintain-connection-test', $value: 'title-maintain-connection-test',
text: BI.i18nText('Dec-Dcm_Connection_Test'), text: BI.i18nText('Dec-Dcm_Connection_Test'),
light: true, light: true,
@ -39,6 +40,7 @@ export class TitleMaintain extends BI.Widget {
}, },
{ {
type: BI.Button.xtype, type: BI.Button.xtype,
_rgap: 16,
$value: 'title-maintain-save', $value: 'title-maintain-save',
text: BI.i18nText('BI-Basic_Save'), text: BI.i18nText('BI-Basic_Save'),
handler: () => { handler: () => {
@ -47,7 +49,6 @@ export class TitleMaintain extends BI.Widget {
}, },
}, },
], ],
_hgap: -16,
}], }],
}; };
} }

Loading…
Cancel
Save