Browse Source

Merge remote-tracking branch 'origin/dev' into dev

hejq 8 years ago
parent
commit
ec579a95b1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/main/webapp/resources/js/index/app.js

+ 4 - 1
src/main/webapp/resources/js/index/app.js

@@ -1872,7 +1872,8 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
         });
         });
         // 获取当前用户分配客户的操作权限
         // 获取当前用户分配客户的操作权限
         CurrentRole.roles({}, function (data) {
         CurrentRole.roles({}, function (data) {
-            $scope.enabled =  data.count > 0 ? true : false ;
+            // 存在权限或者user表sys字段为1时
+            $scope.enabled =  data.count > 0 || $scope.thisUser.sys;
         }, function (response) {
         }, function (response) {
 
 
         });
         });
@@ -22460,5 +22461,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             $modalInstance.close('success');
             $modalInstance.close('success');
         }
         }
     }]);
     }]);
+
+
     return app;
     return app;
 });
 });