Browse Source

凌云集团更改公司

peiguo 5 năm trước cách đây
mục cha
commit
d07bec389c
2 tập tin đã thay đổi với 43 bổ sung0 xóa
  1. 21 0
      admin-ui/app/whepi/index.js
  2. 22 0
      admin-ui/app/whepi/mock/menu7.json

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

@@ -113,6 +113,27 @@ $(function () {
         onLoadSuccess: function (node, data) {
         }
       });
+    } else if (userRole == "7") {//凌云集团管理员
+      $('#menutree').tree({
+        url: '/app/whepi/mock/menu6.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) {
+        }
+      });
     }
 
 

+ 22 - 0
admin-ui/app/whepi/mock/menu7.json

@@ -0,0 +1,22 @@
+{
+  "success": true,
+  "msg": "",
+  "data": [
+    {
+      "id": "ENT10001",
+      "text": "凌云导出报表",
+      "href": "/app/whepi/lingyun/lingyunUser2.js",
+      "iconCls": "icon-blank fa fa-align-justify",
+      "state": "close",
+      "children": []
+    },
+    {
+      "id": "ENT10002",
+      "text": "特殊人员管理",
+      "href": "/app/whepi/scan/specialPersonnel.js",
+      "iconCls": "icon-blank fa fa-align-justify",
+      "state": "close",
+      "children": []
+    }
+  ]
+}