Browse Source

Pull request #2748: DEC-20235 fix: 【迭代】【驱动管理】新建数据连接选择自定义驱动,点击添加驱动再退出,所有没有选择驱动类的自定义驱动标蓝显示

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

* commit '8226d5ac15b4b96b8fd663674a1811226a421689':
  DEC-20235 fix: 【迭代】【驱动管理】新建数据连接选择自定义驱动,点击添加驱动再退出,所有没有选择驱动类的自定义驱动标蓝显示
feature/10.0
Dailer 3 years ago
parent
commit
7349236aa6
  1. 4
      src/modules/pages/maintain/components/driverselector/driverselector.model.ts

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

@ -45,7 +45,9 @@ export class DriverSelectorModel extends Model {
initDriverClassList: cb => { initDriverClassList: cb => {
api.getSimpleDriverList().then(res => { api.getSimpleDriverList().then(res => {
this.model.customDrivers = res.data; this.model.customDrivers = res.data.filter(driver => {
return BI.isKey(driver.driverClass);
});
cb(); cb();
}); });
}, },

Loading…
Cancel
Save