【仅供内部供应商使用,不提供对外解答和培训】

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

BI.config

通过BI.config方法配置平台提供的拓展点,决策平台提供了一系列provider来配置拓展,调用方式如下

BI.config("dec.provider.xxx", function (provider) {
	//  调用provider提供的方法注册拓展
    provider.xxx()
});

示例:拓展管理系统节点

// 管理系统
BI.config("dec.provider.management", function (provider) {
    provider.inject({
        modules: [
            {
                value: "custom_manage",
                id: "decision-management-custom-manage",
                text: "自定义管理",
                cardType: "my.custom_manage",
                cls: "setting-font",
                dev: true
            }
        ]
    });
});
  • No labels