From 17adfc0544f01ec1b19abeeeca0cad0b8171423e Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 월, 20 12월 2021 18:32:49 +0900
Subject: [PATCH] Merge branch 'master' of http://192.168.0.25:9001/r/owl-kisa

---
 src/main/webapp/scripts/app/issue/issueDetail.controller.js |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 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..5ef2e16 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()
@@ -609,6 +608,7 @@
                         priorityName : $scope.vm.priorityName
                     };
 
+                    $rootScope.spinner = true;
                     IssueRelation.add($resourceProvider.getContent(
                         contents,
                         $resourceProvider.getPageContent(0, 10))).then(function (result) {
@@ -619,6 +619,7 @@
                         else {
                             SweetAlert.error($filter("translate")("issue.failedToIssueAddIssueRelation"), result.data.message.message); // "�뿰愿��씪媛� �깮�꽦 �떎�뙣"
                         }
+                        $rootScope.spinner = false;
                     });
                 }
 
@@ -856,7 +857,7 @@
 
                     // $scope.fn.getRelTableConfigs();
                     // $scope.fn.getDownTableConfigs();
-
+                    $rootScope.spinner = true;
                         Issue.detail($resourceProvider.getContent(
                         {id : $scope.vm.viewer.id, deep : "02"},
                         $resourceProvider.getPageContent(0, 1))).then(function (result) {
@@ -896,6 +897,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;
+                                    });
                                 }
 
                                 // �븯�쐞 �씠�뒋 諛섎ぉ臾�
@@ -904,6 +908,9 @@
                                         //$scope.vm.form.issuesDown.push(issueDownVo.issueDown);
                                         $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;
@@ -918,6 +925,7 @@
                         else {
                             SweetAlert.swal($filter("translate")("issue.errorIssueDetails"), result.data.message.message, "error"); // �씠�뒋 �긽�꽭 �젙蹂� 議고쉶 �삤瑜�
                         }
+                        $rootScope.spinner = false;
                     });
                 }
 
@@ -995,12 +1003,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