|
|
@ -30,18 +30,14 @@ export class DriverSelector extends BI.Widget { |
|
|
|
|
|
|
|
|
|
|
|
customDrivers: SearchTextValueCombo = null; |
|
|
|
customDrivers: SearchTextValueCombo = null; |
|
|
|
|
|
|
|
|
|
|
|
beforeRender(cb: Function) { |
|
|
|
|
|
|
|
this.store.initDriverClassList(cb); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
watch = { |
|
|
|
watch = { |
|
|
|
driverClassItems: items => { |
|
|
|
driverClassItems: items => { |
|
|
|
this.customDrivers.populate(items); |
|
|
|
// this.customDrivers.populate(items);
|
|
|
|
this.customDrivers.setValue(this.model.customDriver.value); |
|
|
|
// this.customDrivers.setValue(this.model.customDriver.value);
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
driverManageEntryVisible: b => { |
|
|
|
driverManageEntryVisible: b => { |
|
|
|
this.driverManageEntry.setVisible(b); |
|
|
|
this.driverManageEntry.setVisible(false); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -59,6 +55,7 @@ export class DriverSelector extends BI.Widget { |
|
|
|
type: BI.TextValueCombo.xtype, |
|
|
|
type: BI.TextValueCombo.xtype, |
|
|
|
width: 86, |
|
|
|
width: 86, |
|
|
|
value: this.model.selectedDriverType, |
|
|
|
value: this.model.selectedDriverType, |
|
|
|
|
|
|
|
invisible: true, |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: BI.i18nText('Dec-Basic_Default'), |
|
|
|
text: BI.i18nText('Dec-Basic_Default'), |
|
|
@ -98,7 +95,7 @@ export class DriverSelector extends BI.Widget { |
|
|
|
this.defaultDrivers = _ref; |
|
|
|
this.defaultDrivers = _ref; |
|
|
|
}, |
|
|
|
}, |
|
|
|
invisible: this.model.driverSource !== '', |
|
|
|
invisible: this.model.driverSource !== '', |
|
|
|
width: 204, |
|
|
|
width: 300, |
|
|
|
items: this.model.defaultDrivers, |
|
|
|
items: this.model.defaultDrivers, |
|
|
|
value: this.model.defaultDriver.driver, |
|
|
|
value: this.model.defaultDriver.driver, |
|
|
|
listeners: [ |
|
|
|
listeners: [ |
|
|
@ -119,7 +116,7 @@ export class DriverSelector extends BI.Widget { |
|
|
|
ref: _ref => { |
|
|
|
ref: _ref => { |
|
|
|
this.customDrivers = _ref; |
|
|
|
this.customDrivers = _ref; |
|
|
|
}, |
|
|
|
}, |
|
|
|
invisible: this.model.driverSource === '', |
|
|
|
invisible: true, |
|
|
|
width: 204, |
|
|
|
width: 204, |
|
|
|
watermark: BI.i18nText('Dec-Please_Input'), |
|
|
|
watermark: BI.i18nText('Dec-Please_Input'), |
|
|
|
items: this.model.driverClassItems, |
|
|
|
items: this.model.driverClassItems, |
|
|
@ -149,7 +146,7 @@ export class DriverSelector extends BI.Widget { |
|
|
|
text: BI.i18nText('Dec-Dcm_Create_New_Driver'), |
|
|
|
text: BI.i18nText('Dec-Dcm_Create_New_Driver'), |
|
|
|
}, |
|
|
|
}, |
|
|
|
from: '.dec-dcm', |
|
|
|
from: '.dec-dcm', |
|
|
|
invisible: !this.model.driverManageEntryVisible, |
|
|
|
invisible: true, |
|
|
|
listeners: [ |
|
|
|
listeners: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
eventName: 'EVENT_CLOSE', |
|
|
|
eventName: 'EVENT_CLOSE', |
|
|
@ -178,7 +175,7 @@ export class DriverSelector extends BI.Widget { |
|
|
|
|
|
|
|
|
|
|
|
getValue() { |
|
|
|
getValue() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
driverSource: this.model.driverSource, |
|
|
|
// driverSource: this.model.driverSource,
|
|
|
|
driver: this.model.driverSource === '' ? this.model.defaultDriver.driver : this.model.customDriver.driver, |
|
|
|
driver: this.model.driverSource === '' ? this.model.defaultDriver.driver : this.model.customDriver.driver, |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|