From 8da80f4b57946a591fa3562c988996648d24b905 Mon Sep 17 00:00:00 2001 From: 박지현 <jhpark@maprex.co.kr> Date: 목, 03 3월 2022 17:49:43 +0900 Subject: [PATCH] 워크플로우 시작점/종점 선택 목록 -> 상태(상태 속성) 형식으로 보이도록 수정 --- src/main/webapp/custom_components/js-workflow/js-workflow.directive.js | 57 +++++++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 41 insertions(+), 16 deletions(-) diff --git a/src/main/webapp/custom_components/js-workflow/js-workflow.directive.js b/src/main/webapp/custom_components/js-workflow/js-workflow.directive.js index a227475..7a36c78 100644 --- a/src/main/webapp/custom_components/js-workflow/js-workflow.directive.js +++ b/src/main/webapp/custom_components/js-workflow/js-workflow.directive.js @@ -176,6 +176,17 @@ angular.forEach($scope.vm.issueStatusVos, function (startStatus) { if ($scope.vm.targetStatusId != startStatus.id) { + switch (startStatus.issueStatusType) { + case 'READY' : + startStatus.issueStatusTypeKr = '��湲�' + break; + case 'OPEN' : + startStatus.issueStatusTypeKr = '吏꾪뻾' + break; + case 'CLOSE' : + startStatus.issueStatusTypeKr = '醫낅즺' + break; + } availableStatus.push(startStatus); } }); @@ -583,6 +594,17 @@ } if (!exist) { + switch (issueStatus.issueStatusType) { + case 'READY' : + issueStatus.issueStatusTypeKr = '��湲�' + break; + case 'OPEN' : + issueStatus.issueStatusTypeKr = '吏꾪뻾' + break; + case 'CLOSE' : + issueStatus.issueStatusTypeKr = '醫낅즺' + break; + } $scope.vm.issueStatuses.push(issueStatus); } }); @@ -669,24 +691,27 @@ if ($scope.vm.activeTarget != null) { var targetIssueStatus = $scope.vm.activeTarget.issueStatus; - var myIssueStatus = null; - angular.forEach($scope.vm.issueStatusVos, function (issueStatusVo) { - if (issueStatusVo.id === targetIssueStatus.id) { - myIssueStatus = issueStatusVo; - } - }); + // null 泥댄겕 + if (targetIssueStatus != null) { + var myIssueStatus = null; + angular.forEach($scope.vm.issueStatusVos, function (issueStatusVo) { + if (issueStatusVo.id === targetIssueStatus.id) { + myIssueStatus = issueStatusVo; + } + }); - if (myIssueStatus != null) { - if ($scope.vm.departments != null) { - var workflowDepartments = []; + if (myIssueStatus != null) { + if ($scope.vm.departments != null) { + var workflowDepartments = []; - angular.forEach($scope.vm.departments, function (department) { - var workflowDepartment = { - departmentVo : department - } - workflowDepartments.push(workflowDepartment); - }); - myIssueStatus.workflowDepartmentVos = workflowDepartments; + angular.forEach($scope.vm.departments, function (department) { + var workflowDepartment = { + departmentVo : department + } + workflowDepartments.push(workflowDepartment); + }); + myIssueStatus.workflowDepartmentVos = workflowDepartments; + } } } } -- Gitblit v1.8.0