| | |
| | | id : parameter.id, |
| | | form : { |
| | | id : parameter.id, |
| | | /*users : [],*/ |
| | | departmentList : [], // 현재 부서 목록 |
| | | departments : [] // 부서 |
| | | }, |
| | | departmentName : "", //부서명 검색 |
| | |
| | | } |
| | | },*/ |
| | | }; |
| | | // angular.extend(this, $controller('autoCompleteController', {$scope : $scope, $injector : $injector})); |
| | | angular.extend(this, $controller('autoCompleteController', {$scope : $scope, $injector : $injector})); |
| | | |
| | | // 선택 한 부서 제거 |
| | | function removeDepartments(index) { |
| | |
| | | } |
| | | |
| | | function detail() { |
| | | var contents = { |
| | | id : parameter.id |
| | | } |
| | | |
| | | UserWorkspace.userDepartmentDetail($resourceProvider.getContent( |
| | | $scope.vm, |
| | | contents, |
| | | $resourceProvider.getPageContent(0, 1))).then(function (result) { |
| | | |
| | | if (result.data.message.status === "success") { |
| | | if (angular.isDefined(result.data.data)) { |
| | | $scope.vm.form.departments = result.data.data.userDepartmentVos; //체크 필요 |
| | | $scope.vm.form.departmentList = result.data.data; //체크 필요 |
| | | } |
| | | } |
| | | else { |