Просмотр исходного кода

分配权限,管理平台登入用户可以操作。

dongbw 8 лет назад
Родитель
Сommit
edbedbb018
1 измененных файлов с 4 добавлено и 1 удалено
  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) {
-            $scope.enabled =  data.count > 0 ? true : false ;
+            // 存在权限或者user表sys字段为1时
+            $scope.enabled =  data.count > 0 || $scope.thisUser.sys;
         }, function (response) {
 
         });
@@ -22456,5 +22457,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             $modalInstance.close('success');
         }
     }]);
+
+
     return app;
 });