You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.6 KiB
55 lines
1.6 KiB
!(function () { |
|
|
|
// 示例,向menus中加入帆软官网. |
|
BI.config("dec.constant.menu.items", function (items) { |
|
items.push({ |
|
value: "fanruan", |
|
text: BI.i18nText("帆软"), |
|
cardType: { |
|
src: "http://www.fanruan.com/" |
|
}, |
|
cls: "fr-logo-font" |
|
}); |
|
return items; |
|
}); |
|
|
|
// 示例,向管理系统节点加入帆软帮助文档 |
|
BI.config("dec.constant.management.navigation", function (items) { |
|
items.push({ |
|
value: "frhelp", // 地址栏显示的hash值 |
|
id: "decision-management-fanruan-help", // id |
|
text: BI.i18nText("帮助文档"), // 文字 |
|
cardType: "dec.management.fanruan_help", // 组件的shortcut,适用于用fineui开发的页面. |
|
cls: "fr-logo-font" // 图标类名 |
|
}); |
|
return items; |
|
}); |
|
|
|
|
|
// 组件实现 |
|
var Fanruan = BI.inherit(BI.Widget, { |
|
|
|
props: { |
|
baseCls: "dec-management-fanruan" |
|
}, |
|
|
|
render: function () { |
|
return { |
|
type: "bi.absolute", |
|
items: [ |
|
{ |
|
el: { |
|
type: "bi.iframe", |
|
src: "http://help.finereport.com/" |
|
}, |
|
top: 0, |
|
left: 0, |
|
right: 0, |
|
bottom: 0 |
|
} |
|
] |
|
}; |
|
} |
|
}); |
|
BI.shortcut("dec.management.fanruan_help", Fanruan); |
|
}()); |