Browse Source

REPORT-112276 公共数据取数简道云数据连接部分适配

设计优先级,优先使用平台内置的
feature/x
hans 10 months ago
parent
commit
74dd5ba289
  1. 12
      src/modules/app.provider.ts

12
src/modules/app.provider.ts

@ -135,6 +135,16 @@ BI.provider('dec.connection.provider.datebase', function () {
return false;
}
function filterPluginDataTypeByPriority() {
const originTypes = [...BI.Constants.getConstant(CONSTANT_PLUGIN_TYPES)];
const sortDataTypes = BI.sortBy(originTypes, (index, value: any) => {
return value.priority || 0;
})
return BI.uniqWith(sortDataTypes, (current, other) => {
return current.text == other.text;
});
}
this.registerDatabaseType = (config: any) => {
if (coverBaseDatabase(config)) return;
@ -162,6 +172,6 @@ BI.provider('dec.connection.provider.datebase', function () {
}
return this.resolves[type] || jdbcResolve
},
customDatabaseType: BI.Constants.getConstant(CONSTANT_PLUGIN_TYPES),
customDatabaseType: filterPluginDataTypeByPriority(),
});
});

Loading…
Cancel
Save