소스 검색

凌云集团更改公司

peiguo 5 년 전
부모
커밋
7ede55e24a
2개의 변경된 파일35개의 추가작업 그리고 0개의 파일을 삭제
  1. 21 0
      admin-ui/app/whepi/index.js
  2. 14 0
      admin-ui/app/whepi/mock/menu9.json

+ 21 - 0
admin-ui/app/whepi/index.js

@@ -155,6 +155,27 @@ $(function () {
         onLoadSuccess: function (node, data) {
         }
       });
+    } else if (userRole == "9") {//中建康城管理员
+      $('#menutree').tree({
+        url: '/app/whepi/mock/menu9.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) {
+        }
+      });
     }
 
 

+ 14 - 0
admin-ui/app/whepi/mock/menu9.json

@@ -0,0 +1,14 @@
+{
+  "success": true,
+  "msg": "",
+  "data": [
+    {
+      "id": "ENT100026",
+      "text": "中建康城导出报表",
+      "href": "/app/whepi/lingyun/lingyunUserZJ.js",
+      "iconCls": "icon-blank fa fa-align-justify",
+      "state": "close",
+      "children": []
+    }
+  ]
+}