Преглед изворни кода

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

dongbw пре 8 година
родитељ
комит
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) {
         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) {
 
 
         });
         });
@@ -22456,5 +22457,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             $modalInstance.close('success');
             $modalInstance.close('success');
         }
         }
     }]);
     }]);
+
+
     return app;
     return app;
 });
 });