Browse Source

Pull request #2747: DEC-19760 && DEC-20201

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

* commit '11d8cea36be3af882c468ffea7728c26b9ce63cd':
  DEC-20201 fix: 【迭代】【驱动管理】切换为自定义驱动,已经填好的数据库信息不会保存
  DEC-19760 feat: 【BI配合】驱动管理,war包部署不支持提醒
feature/10.0
Dailer 3 years ago
parent
commit
e1987102c7
  1. 75
      src/modules/pages/maintain/components/driverselector/driverselector.ts

75
src/modules/pages/maintain/components/driverselector/driverselector.ts

@ -76,12 +76,15 @@ export class DriverSelector extends BI.Widget {
if (value === 'default') {
this.defaultDrivers.setVisible(true);
this.customDrivers.setVisible(false);
this.fireEvent('EVENT_CHANGE');
return;
}
this.defaultDrivers.setVisible(false);
this.customDrivers.setVisible(true);
if (BI.isKey(this.customDrivers.getValue()[0])) {
this.fireEvent('EVENT_CHANGE');
}
},
},
],
@ -136,71 +139,29 @@ export class DriverSelector extends BI.Widget {
},
}, {
el: {
type: BI.Button.xtype,
type: 'dec.connection.driver.entry',
ref: (_ref: Button) => {
this.driverManageEntry = _ref;
},
level: 'ignore',
text: BI.i18nText('Dec-Dcm_Create_New_Driver'),
invisible: !this.model.driverManageEntryVisible,
handler: () => {
this.createDriverManagerLayer();
el: {
type: BI.Button.xtype,
level: 'ignore',
text: BI.i18nText('Dec-Dcm_Create_New_Driver'),
},
},
},
],
};
}
private createDriverManagerLayer() {
const name = BI.UUID();
BI.Layers.create(name, '.dec-dcm', {
render: {
type: 'bi.vtape',
cls: 'bi-background',
items: [
{
type: 'bi.vertical_adapt',
cls: 'bi-card',
items: [
from: '.dec-dcm',
invisible: !this.model.driverManageEntryVisible,
listeners: [
{
el: {
type: 'bi.icon_text_item',
text: BI.i18nText('Dec-Connection_Driver_Management_Exit'),
cls: 'back-font bi-high-light',
height: 24,
logic: {
dynamic: true,
},
handler: () => {
this.store.initDriverClassList(() => BI.Layers.remove(name));
},
eventName: 'EVENT_CLOSE',
action: () => {
this.store.initDriverClassList(BI.emptyFn);
},
hgap: 10,
},
],
height: 40,
}, {
el: {
type: 'dec.connection.driver',
listeners: [
{
eventName: 'EVENT_CLOSE',
action() {
BI.Layers.remove(name);
},
},
],
},
hgap: 10,
vgap: 10,
},
],
},
});
BI.Layers.show(name);
},
],
};
}
validation(): boolean {

Loading…
Cancel
Save