Browse Source

Merge pull request #3508 in DEC/decision-webui-dcm from release/11.0 to feature/x

* commit '0e5dda852d6d6ae0548de5a4698c3d35fad6e9fe':
  DEC-21469 fix: 【迭代】【驱动管理v1.1】两个驱动类相同的自定义驱动,新建数据连接保存后会默认显示最新的那个
feature/x
superman 3 years ago
parent
commit
315607ff7e
  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.customDrivers.some(customDriver => {
if (customDriver.driverClass === driver) {
// DEC-21469 存在driver值相同但driver名不同的场景,因此要用拼接名判断
if (`${customDriver.driverClass} (${customDriver.name})` === value) {
this.model.driverSource = customDriver.name;
this.model.customDriver.value = `${driver} (${customDriver.name})`;

Loading…
Cancel
Save