|
|
@@ -2688,7 +2688,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
if (save) {
|
|
|
if (uuData) {
|
|
|
// 当前用户是管理员时
|
|
|
- if ($scope.thisUser.sys) {
|
|
|
+ if ($scope.thisUser.sys || type === 'sale') {
|
|
|
angular.forEach($scope.userinfos, function (item, i) {
|
|
|
chooseResult.push(item);
|
|
|
});
|
|
|
@@ -2707,10 +2707,6 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
toaster.pop('error', '保存失败', "您未勾选任何记录");
|
|
|
}
|
|
|
} else {
|
|
|
- if(type === 'sale') {
|
|
|
- toaster.pop('info', '提示', "您没有权限转移对象");
|
|
|
- return
|
|
|
- }
|
|
|
// 非管理员转移自己的权限时
|
|
|
angular.forEach($scope.userinfos, function (item, i) {
|
|
|
if (item.transfer && item.userUU !== $scope.thisUser.userUU) {
|