Browse Source

Pull request #8751: REPORT-112276 公共数据取数简道云数据连接部分适配

Merge in DEC/decision-webui-dcm from ~HANS/decision-webui-dcm:feature/x to feature/x

* commit '74dd5ba289dbf6056dc02764b679b4ebe4fbd17f':
  REPORT-112276 公共数据取数简道云数据连接部分适配 设计优先级,优先使用平台内置的
feature/x
Hans-杨瀚 10 months ago
parent
commit
d1292456be
  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