Browse Source

Merge pull request #8755 in DEC/decision-webui-dcm from bugfix/11.0 to release/11.0

* commit 'abad4846afb5db29872e9621c335dcec68eb2184':
  REPORT-112276 公共数据取数简道云数据连接部分适配 设计优先级,优先使用平台内置的
release/11.0
superman 10 months ago
parent
commit
fb6b022024
  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