| | |
| | | formCheck : formCheck, // 폼 체크 |
| | | getIssueTypes : getIssueTypes, // 이슈 타입 목록 가져오기 |
| | | makeSearchConditions : makeSearchConditions, // 선택한 조건을 json 으로 만든다. |
| | | onFileSelect : onFileSelect // 파일 업로드 |
| | | onFileSelect : onFileSelect, // 파일 업로드 |
| | | getIssueListCallBack : getIssueListCallBack // 이슈 autocomplete page 업데이트 |
| | | }; |
| | | |
| | | $scope.vm = { |
| | |
| | | }; |
| | | |
| | | angular.extend(this, $controller('autoCompleteController', {$scope : $scope, $injector : $injector})); |
| | | |
| | | // 이슈 autocomplete page 업데이트 |
| | | function getIssueListCallBack(result) { |
| | | $scope.vm.autoCompletePage.issue.totalPage = result.data.page.totalPage; |
| | | } |
| | | |
| | | // 이슈 유형 목록 |
| | | function getIssueTypes() { |
| | |
| | | |
| | | // 폼 체크 |
| | | function formCheck() { |
| | | if ($scope.vm.form.projects == null || $scope.vm.form.projects.length === 0) { |
| | | return false; |
| | | } |
| | | |
| | | if ($scope.vm.form.issues == null || $scope.vm.form.issues.length === 0) { |
| | | return false; |
| | | } |
| | | |
| | | if ($scope.vm.form.file.length < 1) { |
| | | return true; |
| | | } |
| | |
| | | file : $scope.vm.form.file, |
| | | // data 속성으로 별도의 데이터 전송 |
| | | fields : { |
| | | content : {} |
| | | content : { |
| | | projectId : $scope.vm.form.projects[0].id, |
| | | issueTypeId : $scope.vm.form.issueTypeId, |
| | | parentIssueId : $scope.vm.form.issues[0].id |
| | | } |
| | | }, |
| | | fileFormDataName : "file" |
| | | }) |