Browse Source

Pull request #3499: DEC-21469 fix: 【迭代】【驱动管理v1.1】两个驱动类相同的自定义驱动,新建数据连接保存后会默认显示最新的那个

Merge in DEC/decision-webui-dcm from ~DAILER/decision-webui-dcm:release/11.0 to release/11.0

* commit '29c53b976a1e006e40d55976f3548d9014ec5820':
  DEC-21469 fix: 【迭代】【驱动管理v1.1】两个驱动类相同的自定义驱动,新建数据连接保存后会默认显示最新的那个
bugfix/11.0
Dailer 3 years ago
parent
commit
0e5dda852d
  1. 3
      src/modules/pages/maintain/components/driverselector/driverselector.model.ts

3
src/modules/pages/maintain/components/driverselector/driverselector.model.ts

@ -67,7 +67,8 @@ export class DriverSelectorModel extends Model {
this.model.customDriver.driver = driver; this.model.customDriver.driver = driver;
this.model.customDrivers.some(customDriver => { this.model.customDrivers.some(customDriver => {
if (customDriver.driverClass === driver) { // DEC-21469 存在driver值相同但driver名不同的场景,因此要用拼接名判断
if (`${customDriver.driverClass} (${customDriver.name})` === value) {
this.model.driverSource = customDriver.name; this.model.driverSource = customDriver.name;
this.model.customDriver.value = `${driver} (${customDriver.name})`; this.model.customDriver.value = `${driver} (${customDriver.name})`;

Loading…
Cancel
Save