| | |
| | | function ($scope, $rootScope, $log, $resourceProvider, $uibModalInstance, UserWorkspace, parameter, SweetAlert, $filter) { |
| | | |
| | | $scope.fn = { |
| | | getUserLevelList : getUserLevelList, // 사용자 등급 관리 리스트 |
| | | cancel : cancel, // 팝업 창 닫기 |
| | | formSubmit : formSubmit, // 폼 전송 |
| | | formCheck : formCheck, // 폼 체크 |
| | | modifyUserPermission : modifyUserPermission, // 권한 변경 |
| | | //modifyUserPermission : modifyUserPermission, // 권한 변경 |
| | | //detail : detail // 상세 정보 |
| | | }; |
| | | |
| | | $scope.vm = { |
| | | search : { |
| | | id : parameter.id |
| | | }, |
| | | id : parameter.id, |
| | | form : { |
| | | levelName : "", |
| | | permWorkspaceSetting : false, |
| | |
| | | permGuide : false |
| | | } |
| | | }; |
| | | |
| | | // 사용자 등급 관리 목록 조회 |
| | | function getUserLevelList() { |
| | | |
| | | var conditions = { |
| | | id : $scope.vm.id |
| | | }; |
| | | |
| | | //테이블 리스트 데이터 컨트롤러 요청 |
| | | UserWorkspace.levelFind($resourceProvider.getContent(conditions, |
| | | $resourceProvider.getPageContent(0, 10))).then(function (result) { |
| | | |
| | | if (result.data.message.status === "success") { |
| | | $scope.vm.form.levelName = result.data.data[0].levelName; //levelName 가져오기 |
| | | |
| | | } |
| | | else { |
| | | SweetAlert.error($filter("translate")("managementWorkspace.failedToSelectWorkspaceFullUserList"), result.data.message.message); // "사용자 등급 목록 조회 실패" |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function formCheck(formInvalid) { |
| | | if (formInvalid) { |
| | |
| | | //description : $rootScope.preventXss($scope.vm.form.description) |
| | | }; |
| | | |
| | | UserWorkspace.modify($resourceProvider.getContent(condition, |
| | | UserWorkspace.modifyLevel($resourceProvider.getContent(condition, |
| | | content, |
| | | $resourceProvider.getPageContent(0, 0))).then(function (result) { |
| | | |
| | |
| | | // 공지사항 상세 조회 |
| | | $scope.fn.detail();*/ |
| | | |
| | | function modifyUserPermission(userPermission ) { |
| | | /*function modifyUserPermission(userPermission ) { |
| | | UserWorkspace.levelModify($resourceProvider.getContent(userPermission, |
| | | $resourceProvider.getPageContent(0, 0))).then(function (result) { |
| | | if (result.data.message.status === "success") { |
| | |
| | | SweetAlert.error($filter("translate")("managementWorkspace.failedToParticipationStatusChange"), result.data.message.message); // "참여 상태 변경 실패" |
| | | } |
| | | }); |
| | | } |
| | | }*/ |
| | | $scope.fn.getUserLevelList(); |
| | | |
| | | }]); |
| | | }); |