|
@@ -2,9 +2,11 @@ var userRole = 0;
|
|
|
$(function () {
|
|
|
//隐藏角色上的提示红点
|
|
|
$('#role-name-num').hide();
|
|
|
+
|
|
|
function doSearch(text) {
|
|
|
$('#menutree').tree('search', text);
|
|
|
}
|
|
|
+
|
|
|
App.init(function () {
|
|
|
document.onkeydown = function (event) {
|
|
|
if (event.ctrlKey && event.keyCode === 191) {
|
|
@@ -69,6 +71,27 @@ $(function () {
|
|
|
onLoadSuccess: function (node, data) {
|
|
|
}
|
|
|
});
|
|
|
+ } else if (userRole == "5") {//指挥部登录
|
|
|
+ $('#menutree').tree({
|
|
|
+ url: '/app/whepi/mock/menu5.json',
|
|
|
+ onDblClick: function (node) {
|
|
|
+ var $this = $(this);
|
|
|
+ if (!$this.tree('isLeaf', node.target)) {
|
|
|
+ $this.tree(node.state === 'closed' ? 'expand' : 'collapse', node.target);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onSelect: function () {
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ onClick: function (node) {
|
|
|
+ var href = node.href;
|
|
|
+ if ($.trim(href)) {
|
|
|
+ App.addTab({title: node.text, url: node.href, id: node.id, iconCls: node.iconCls});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoadSuccess: function (node, data) {
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
|
|
@@ -157,7 +180,7 @@ var App = {
|
|
|
|
|
|
} else {
|
|
|
iframe = '<iframe src="' + params.url +
|
|
|
- '" scrolling="auto" frameborder="0" style="width:100%;height:100%;"></iframe>';
|
|
|
+ '" scrolling="auto" frameborder="0" style="width:100%;height:100%;"></iframe>';
|
|
|
}
|
|
|
|
|
|
$tt.tabs('add', {
|