From e0e5ecc842ce5af1a7c0229a923c0edd4aaac2f1 Mon Sep 17 00:00:00 2001 From: 이민희 <mhlee@maprex.co.kr> Date: 화, 08 2월 2022 16:45:30 +0900 Subject: [PATCH] 이슈 상세 검색 시 기간검색 가능 --- src/main/webapp/scripts/app/issue/issueList.controller.js | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/scripts/app/issue/issueList.controller.js b/src/main/webapp/scripts/app/issue/issueList.controller.js index 0048bdf..53ddc18 100644 --- a/src/main/webapp/scripts/app/issue/issueList.controller.js +++ b/src/main/webapp/scripts/app/issue/issueList.controller.js @@ -61,6 +61,7 @@ registerDateRange : "", // �벑濡앹씪 湲곌컙 寃��깋 startDateRange : "", // �떆�옉�씪 湲곌컙 寃��깋 completeDateRange : "", // �셿猷뚯씪 湲곌컙 寃��깋 + dateRange : "", // 湲곌컙 寃��깋 severityIds : [], // 以묒슂�룄 寃��깋 priorityIds : [], // �슦�꽑�닚�쐞 寃��깋 issueStatusIds : [], // �씠�뒋 �긽�깭 寃��깋 @@ -176,7 +177,7 @@ $scope.fn.getPageList(0, true, keyWord, allIssue); } else { - $scope.fn.getPageList(0, false, keyWord, true); + $scope.fn.getPageList(0, false, keyWord, allIssue); } } else { @@ -495,6 +496,7 @@ endStartDate : "", beginCompleteDate : "", endCompleteDate : "", + dateRange: "", hideCompleteIssue: $scope.vm.hideCompleteIssue, hideDownIssue : $scope.vm.hideDownIssue, isTree : $scope.vm.listMode === 1, @@ -618,6 +620,10 @@ conditions.beginCompleteDate = completeDateRange[0].trim(); conditions.endCompleteDate = completeDateRange[1].trim(); } + // 湲곌컙 + if ($rootScope.isDefined($scope.vm.search.dateRange)) { + conditions.dateRange = $scope.vm.search.dateRange.trim(); + } return conditions; @@ -641,7 +647,7 @@ if (keyWord != null) { $scope.vm.search.keyWord = keyWord; $rootScope.isMainSearch = true; - + $scope.vm.allIssue = true; $rootScope.$broadcast("getPageListKeyWord", {keyWord: $scope.vm.search.keyWord}); } @@ -666,10 +672,10 @@ // 寃��깋 湲곕낯媛� �꽭�똿 $scope.vm.search.issueTypeIds = []; $scope.vm.projects = []; - if (keyWord == null || keyWord === '') { + if (!$scope.vm.allIssue && keyWord == null || keyWord === '') { // 硫붾돱�뿉�꽌 �꽑�깮�맂 �씠�뒋 �쑀�삎�쓣 湲곕낯�쑝濡� 異붽� if ($rootScope.issueTypeMenu != null) { - //$scope.vm.pageTitle = $rootScope.issueTypeMenu.name; + $scope.vm.pageTitle = $rootScope.issueTypeMenu.name; $scope.vm.search.issueTypeIds.push({ fieldKey: $rootScope.issueTypeMenu.id, @@ -852,6 +858,7 @@ parameter : function () { return { id : id, + issueTypeId : $scope.vm.viewer.issueTypeVo.id }; } } @@ -1361,7 +1368,7 @@ // �씠�뒋 �뀒�씠釉� �꽕�젙 �젙蹂대�� ���옣 �븳�떎. $scope.vm.issueTableConfigs = JSON.parse(issueTableConfigs); $scope.vm.issueTableConfigs.sort(function (a, b) { - return a.position < b.position ? -1 : a.position > b.position ? 1: 0; + return parseInt(a.position) < parseInt(b.position) ? -1 : parseInt(a.position) > parseInt(b.position) ? 1 : 0; }); } else { -- Gitblit v1.8.0