|
|
@ -336,8 +336,9 @@ define(['angular', 'uiRouter', 'uiBootstrap'], function (angular) {
|
|
|
|
|
|
|
|
|
|
|
|
app.controller('modifyManagerCtrl', ['$scope', '$http', 'manager', function ($scope, $http, manager) {
|
|
|
|
app.controller('modifyManagerCtrl', ['$scope', '$http', 'manager', function ($scope, $http, manager) {
|
|
|
|
$scope.manager = manager;
|
|
|
|
$scope.manager = manager;
|
|
|
|
|
|
|
|
$scope.isOrgModify = true;
|
|
|
|
$scope.params = {};
|
|
|
|
$scope.params = {};
|
|
|
|
$scope.loadOrgs = function () {
|
|
|
|
/* $scope.loadOrgs = function () {
|
|
|
|
$http.get('/sys/orgs').then(function (resp) {
|
|
|
|
$http.get('/sys/orgs').then(function (resp) {
|
|
|
|
$scope.orgs = resp.data;
|
|
|
|
$scope.orgs = resp.data;
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -359,7 +360,7 @@ define(['angular', 'uiRouter', 'uiBootstrap'], function (angular) {
|
|
|
|
$scope.manager.org_id2 = $scope.manager.org_id;
|
|
|
|
$scope.manager.org_id2 = $scope.manager.org_id;
|
|
|
|
$scope.manager.org_id = $scope.manager.parent_org_id;
|
|
|
|
$scope.manager.org_id = $scope.manager.parent_org_id;
|
|
|
|
$scope.loadOrgsChild($scope.manager.org_id);
|
|
|
|
$scope.loadOrgsChild($scope.manager.org_id);
|
|
|
|
};
|
|
|
|
};*/
|
|
|
|
$scope.modify = function () {
|
|
|
|
$scope.modify = function () {
|
|
|
|
/*if(($scope.currentUser.role & parseInt('1000000000000', 2)) > 0 && $scope.currentUser.org_id){
|
|
|
|
/*if(($scope.currentUser.role & parseInt('1000000000000', 2)) > 0 && $scope.currentUser.org_id){
|
|
|
|
if($scope.manager.org_id2 != "null") {
|
|
|
|
if($scope.manager.org_id2 != "null") {
|
|
|
@ -367,9 +368,9 @@ define(['angular', 'uiRouter', 'uiBootstrap'], function (angular) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
delete $scope.manager.org_id2;
|
|
|
|
delete $scope.manager.org_id2;
|
|
|
|
}*/
|
|
|
|
}*/
|
|
|
|
if($scope.manager.org_id2 != null && $scope.manager.org_id2 != 'null') {
|
|
|
|
/* if($scope.manager.org_id2 != null && $scope.manager.org_id2 != 'null') {
|
|
|
|
$scope.manager.org_id = $scope.manager.org_id2;
|
|
|
|
$scope.manager.org_id = $scope.manager.org_id2;
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
$scope.errmsg = null;
|
|
|
|
$scope.errmsg = null;
|
|
|
|
$http.put('/sys/manager_accounts/' + manager.manager_id, $scope.manager).then(function () {
|
|
|
|
$http.put('/sys/manager_accounts/' + manager.manager_id, $scope.manager).then(function () {
|
|
|
|
$scope.$close();
|
|
|
|
$scope.$close();
|
|
|
|