이슈 상세 연관,하위 테이블 표시 설정 - [프론트]
| | |
| | | * Created by wisestone on 2018-10-10. |
| | | */ |
| | | public enum IssueModifyType { |
| | | RELATION_ISSUE_TYPE, |
| | | RELATION_ISSUE_TITLE, |
| | | DOWN_ISSUE_TITLE, |
| | | SEVERITY, |
| | | PRIORITY, |
| | | ISSUE_STATUS, |
| | |
| | | $scope.vm = { |
| | | issueId : "", |
| | | issueTableConfigs : [{ |
| | | name : $filter("translate")("common.priority"), // 우선순위 |
| | | key : "PRIORITY", |
| | | name : $filter("translate")("issue.downIssueTitle"), // |
| | | key : "DOWN_ISSUE_TITLE", |
| | | width : "width-100-p", |
| | | position : 1, |
| | | display : true |
| | | }, { |
| | | name : $filter("translate")("common.priority"), // 우선순위 |
| | | key : "PRIORITY", |
| | | width : "width-80-p", |
| | | position : 2, |
| | | display : true |
| | | }, { |
| | | name : $filter("translate")("common.importance"), // 중요도 |
| | | key : "SEVERITY", |
| | | width : "width-80-p", |
| | | position : 2, |
| | | position : 3, |
| | | display : true |
| | | }, { |
| | | name : $filter("translate")("issue.issueType"), // 이슈 타입 |
| | | key : "ISSUE_TYPE", |
| | | width : "width-140-p", |
| | | position : 3, |
| | | position : 4, |
| | | display : true |
| | | }, { |
| | | name : $filter("translate")("common.assignee"), // 담당자 |
| | | key : "ASSIGNEE", |
| | | width : "width-100-p", |
| | | position : 4, |
| | | position : 5, |
| | | display : true |
| | | }, { |
| | | name : $filter("translate")("common.register"), // 등록자 |
| | | key : "REGISTER", |
| | | width : "width-100-p", |
| | | position : 5, |
| | | position : 6, |
| | | display : false |
| | | }, { |
| | | name : $filter("translate")("common.period"), // 기간 |
| | | key : "PERIOD", |
| | | width : "width-140-p", |
| | | position : 6, |
| | | position : 7, |
| | | display : false |
| | | }, { |
| | | name : $filter("translate")("common.lastChangeDate"), // 최근 변경일 |
| | | key : "MODIFY_DATE", |
| | | width : "width-100-p", |
| | | position : 7, |
| | | position : 8, |
| | | display : false |
| | | }, { |
| | | }] |
| | |
| | | function getIssueTableConfigs() { |
| | | var deferred = $q.defer(); |
| | | |
| | | IssueTableConfig.downDetail($resourceProvider.getContent({}, |
| | | IssueTableConfig.downDetail($resourceProvider.getContent(content, |
| | | $resourceProvider.getPageContent(0, 1000))).then(function (result) { |
| | | if (result.data.message.status !== "success") { |
| | | SweetAlert.error($filter("translate")("issue.failedToIssueTableColumnLookup"), result.data.message.message); // 이슈 테이블 컬럼 조회 실패 |
| | |
| | | |
| | | // 사용자 정의 필드를 조회한 후 표시할 이슈 테이블 컬럼을 준비한다. |
| | | $scope.fn.getCustomFields().then(function (result) { |
| | | var count = 7; |
| | | var count = 8; |
| | | angular.forEach(result, function (customField) { |
| | | $scope.vm.issueTableConfigs.push({ |
| | | name : customField.name, |
| | |
| | | function getIssueTableConfigs() { |
| | | var deferred = $q.defer(); |
| | | |
| | | IssueTableConfig.relationDetail($resourceProvider.getContent({}, |
| | | IssueTableConfig.relationDetail($resourceProvider.getContent(content, |
| | | $resourceProvider.getPageContent(0, 1000))).then(function (result) { |
| | | if (result.data.message.status !== "success") { |
| | | SweetAlert.error($filter("translate")("issue.failedToIssueTableColumnLookup"), result.data.message.message); // 이슈 테이블 컬럼 조회 실패 |
| | |
| | | // 변수 모음 |
| | | $scope.vm = { |
| | | issueTableConfigs : [{ |
| | | name : $filter("translate")("common.priority"), // 우선순위 |
| | | key : "PRIORITY", |
| | | name : $filter("translate")("issue.relationIssueType"), // 연관 이슈 구분 |
| | | key : "RELATION_ISSUE_TYPE", |
| | | width : "width-100-p", |
| | | position : 1, |
| | | display : true |
| | | }, { |
| | | name : $filter("translate")("issue.relationIssueTitle"), // 연관 이슈 제목 |
| | | key : "RELATION_ISSUE_TITLE", |
| | | width : "width-80-p", |
| | | position : 2, |
| | | display : true |
| | | }, { |
| | | name : $filter("translate")("common.importance"), // 우선순위 |
| | | key : "PRIORITY", |
| | | width : "width-80-p", |
| | | position : 3, |
| | | display : true |
| | | }, { |
| | | name : $filter("translate")("common.importance"), // 중요도 |
| | | key : "SEVERITY", |
| | | width : "width-80-p", |
| | | position : 2, |
| | | position : 4, |
| | | display : true |
| | | }, { |
| | | name : $filter("translate")("issue.issueType"), // 이슈 타입 |
| | | key : "ISSUE_TYPE", |
| | | width : "width-140-p", |
| | | position : 3, |
| | | position : 5, |
| | | display : true |
| | | }, { |
| | | name : $filter("translate")("common.assignee"), // 담당자 |
| | | key : "ASSIGNEE", |
| | | width : "width-100-p", |
| | | position : 4, |
| | | position : 6, |
| | | display : true |
| | | }, { |
| | | name : $filter("translate")("common.register"), // 등록자 |
| | | key : "REGISTER", |
| | | width : "width-100-p", |
| | | position : 5, |
| | | position : 7, |
| | | display : false |
| | | }, { |
| | | name : $filter("translate")("common.period"), // 기간 |
| | | key : "PERIOD", |
| | | width : "width-140-p", |
| | | position : 6, |
| | | position : 8, |
| | | display : false |
| | | }, { |
| | | name : $filter("translate")("common.lastChangeDate"), // 최근 변경일 |
| | | key : "MODIFY_DATE", |
| | | width : "width-100-p", |
| | | position : 7, |
| | | position : 9, |
| | | display : false |
| | | }, { |
| | | }] |
| | |
| | | |
| | | // 사용자 정의 필드를 조회한 후 표시할 이슈 테이블 컬럼을 준비한다. |
| | | $scope.fn.getCustomFields().then(function (result) { |
| | | var count = 7; |
| | | var count = 9; |
| | | angular.forEach(result, function (customField) { |
| | | $scope.vm.issueTableConfigs.push({ |
| | | name : customField.name, |
| | |
| | | severityIds : [], // 중요도 검색 |
| | | priorityIds : [], // 우선순위 검색 |
| | | issueStatusIds : [], // 이슈 상태 검색 |
| | | issueTypeIds : [], // 이슈 유형 검색 |
| | | issueTypeIds : [] // 이슈 유형 검색 |
| | | }, |
| | | searchView : false, // 상세 검색 조건 표시 여부 |
| | | detailView : false, // 상세 모드 변경 값 |
| | |
| | | responseData : { |
| | | data : [] |
| | | }, |
| | | departmentName : "", |
| | | projectName : "", // 프로젝트 검색 |
| | | userName : "", // 담당자 검색 |
| | | registerName : "", // 등록자 검색 |
| | | projects : [], // 프로젝트 |
| | | departments : [], |
| | | issueStatuses : [], // 이슈 상태 |
| | | issueTypes : [], // 이슈 유형 |
| | | priorities : [], // 우선 순위 |
| | |
| | | search : $scope.vm.search, |
| | | projects : $scope.vm.projects, |
| | | users : $scope.vm.users, |
| | | departments : $scope.vm.departments, |
| | | registers : $scope.vm.registers, |
| | | parentIssueId : $scope.vm.parentIssueId |
| | | }) |
| | |
| | | var issueListSearchObject = JSON.parse(result.data.data); |
| | | // 이슈 번호만 적용한다. - 삭제시 처리방법때문에 다른 속성은 적용 보류 |
| | | $scope.vm.search = issueListSearchObject.search; |
| | | $scope.vm.users = issueListSearchObject.users; |
| | | $scope.vm.departments = issueListSearchObject.departments; |
| | | /*$scope.vm.users = issueListSearchObject.users; |
| | | $scope.vm.projects = issueListSearchObject.projects; |
| | | $scope.vm.registers = issueListSearchObject.registers; |
| | | $scope.vm.registers = issueListSearchObject.registers;*/ |
| | | |
| | | $scope.fn.getPageList(0, true); |
| | | } else { |
| | |
| | | }); |
| | | |
| | | return userIds; |
| | | })(), |
| | | departmentIds : (function () { |
| | | var departmentIds = []; |
| | | |
| | | angular.forEach($scope.vm.departments, function (department) { |
| | | departmentIds.push(department.id); |
| | | }); |
| | | |
| | | return departmentIds; |
| | | })(), |
| | | registerIds : (function () { |
| | | var registerIds = []; |