|
|
@@ -5214,7 +5214,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '提示', response.data);
|
|
|
});
|
|
|
- }
|
|
|
+ };
|
|
|
loadData();
|
|
|
|
|
|
// 当前时间
|
|
|
@@ -11564,7 +11564,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
BaseService.scrollBackToTop();
|
|
|
// 获取当前用户是否为管理员
|
|
|
CurrentRole.isManager({}, {}, function (data) {
|
|
|
- $scope.isManager = data.isManager;
|
|
|
+ $scope.isManager = data.isManager || $scope.user.sys;
|
|
|
});
|
|
|
$scope.role = role;
|
|
|
$scope.master = angular.copy($scope.role);
|