From 9b300fcda4f110be2e463b0b72d18703efdb8db1 Mon Sep 17 00:00:00 2001
From: wyu <kknd09321@nate.com>
Date: 화, 21 12월 2021 11:19:02 +0900
Subject: [PATCH] 뒤로가기 버튼 아이콘 수정

---
 src/main/webapp/scripts/app/issue/issueDetail.controller.js |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/src/main/webapp/scripts/app/issue/issueDetail.controller.js b/src/main/webapp/scripts/app/issue/issueDetail.controller.js
index 37fadd0..674cceb 100644
--- a/src/main/webapp/scripts/app/issue/issueDetail.controller.js
+++ b/src/main/webapp/scripts/app/issue/issueDetail.controller.js
@@ -244,7 +244,6 @@
 
                     //  �뿰愿� �씠�뒋 而щ읆
                     switch(Rel_issueTableConfig.key) {
-
                         // �뿰愿� �씠�뒋 援щ텇
                         case "RELATION_ISSUE_TYPE" :
                             $scope.vm.relTableConfigs.push($tableProvider.config()
@@ -851,13 +850,12 @@
 
                 //  �씠�뒋 �긽�꽭 �젙蹂� 議고쉶
                 function getIssueDetail() {
+                    $rootScope.spinner = true;
                     //  珥덇린�솕 �빐�빞�븷 �븷紐⑹쓣 吏��젙�븯�뿬 �떎瑜� �씠�뒋瑜� �겢由��븷 �븣 珥덇린�솕�빐以��떎.
                     $scope.fn.initReload();
-
                     // $scope.fn.getRelTableConfigs();
                     // $scope.fn.getDownTableConfigs();
-
-                        Issue.detail($resourceProvider.getContent(
+                    Issue.detail($resourceProvider.getContent(
                         {id : $scope.vm.viewer.id, deep : "02"},
                         $resourceProvider.getPageContent(0, 1))).then(function (result) {
 
@@ -896,6 +894,9 @@
                                         issueRelationVo.relationIssueTypeName = $scope.vm.relationIssueTypes[issueRelationVo.relationIssueType].name;
                                         $scope.vm.form.issues.push(issueRelationVo.issueRelation);
                                     });
+                                    result.data.data.issueRelationVos.sort(function (a, b) {   //理쒓렐蹂�寃쎌씪 �궡由쇱감�닚
+                                        return a.modifyDate > b.modifyDate ? -1 : a.modifyDate < b.modifyDate ? 1 : 0;
+                                    });
                                 }
 
                                 // �븯�쐞 �씠�뒋 諛섎ぉ臾�
@@ -905,6 +906,9 @@
                                         $scope.vm.form.issuesDown.push(issueDownVo);
                                         $scope.vm.form.issuesDownStatus.push(issueDownVo.issueStatusVo.issueStatusType);
                                     });
+                                    result.data.data.issueDownVos.sort(function (a, b) {   //理쒓렐蹂�寃쎌씪 �궡由쇱감�닚
+                                        return a.modifyDate > b.modifyDate ? -1 : a.modifyDate < b.modifyDate ? 1 : 0;
+                                    });
                                 }
                                 $scope.vm.viewer.issueRelationVos = result.data.data.issueRelationVos;
                                 $scope.vm.viewer.issueDownVos = result.data.data.issueDownVos;
@@ -912,12 +916,12 @@
                                 if ($rootScope.workProject.id > -1 && result.data.data.projectVo !== null) {
                                     $rootScope.changeLastProject(result.data.data.projectVo.id);
                                 }
-
                             }
                         }
                         else {
                             SweetAlert.swal($filter("translate")("issue.errorIssueDetails"), result.data.message.message, "error"); // �씠�뒋 �긽�꽭 �젙蹂� 議고쉶 �삤瑜�
                         }
+                        $rootScope.spinner = false;
                     });
                 }
 
@@ -995,12 +999,12 @@
 
                 //  �솢�룞 �씠�젰 留뚮뱾湲�
                 function makeActiveHistory() {
+                    $scope.vm.viewer.activeParentHistory = "";
+                    $scope.vm.viewer.activeHistory = "";
                     if ($scope.vm.viewer.issueDownVos != null && $scope.vm.viewer.issueDownVos.length > 0) {
-                        $scope.vm.viewer.activeHistory = "";
-                        $scope.vm.viewer.activeParentHistory = "";
-                        $scope.vm.viewer.activeDownHistory = "";
-                        $scope.vm.viewer.activeDownAllHistory = "";
-                        $scope.vm.viewer.downComment = "";
+                        $scope.vm.viewer.activeDownHistory = ""; //�븯�쐞�씠�뒋 �엳�뒪�넗由щ쭔
+                        $scope.vm.viewer.downComment = ""; //�븯�쐞�씠�뒋 �뙎湲�留�
+                        $scope.vm.viewer.activeDownAllHistory = ""; //�븯�쐞�씠�뒋 �엳�뒪�넗由�+�뙎湲�
                         var downTitle = "";
                         var oriDownHistory = [];
                         var oriDownCommentHistory = [];

--
Gitblit v1.8.0