From b69416fc721e8f0eb478536bf0d98ae3f6c4811e Mon Sep 17 00:00:00 2001 From: wyu <kknd09321@nate.com> Date: 수, 24 11월 2021 17:57:08 +0900 Subject: [PATCH] 이슈 상세 연관,하위 테이블 표시 설정 - [프론트] --- src/main/webapp/scripts/app/issue/issueAddTableConfig.controller.js | 29 ++++++++++++++++++++++------- 1 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/scripts/app/issue/issueAddTableConfig.controller.js b/src/main/webapp/scripts/app/issue/issueAddTableConfig.controller.js index 6793b14..027619d 100644 --- a/src/main/webapp/scripts/app/issue/issueAddTableConfig.controller.js +++ b/src/main/webapp/scripts/app/issue/issueAddTableConfig.controller.js @@ -17,7 +17,7 @@ formSubmit : formSubmit, // �뤌 �쟾�넚 formCheck : formCheck, // �뤌 泥댄겕 getCustomFields : getCustomFields, // �궗�슜�옄 �젙�쓽 �븘�뱶 紐⑸줉�쓣 媛��졇�삩�떎. - getIssueTableConfigs : getIssueTableConfigs // �씠�뒋 紐⑸줉 �뀒�씠釉� �꽕�젙 �젙蹂대�� 媛��졇�삩�떎. + getIssueAddTableConfigs : getIssueAddTableConfigs // �씠�뒋 紐⑸줉 �뀒�씠釉� �꽕�젙 �젙蹂대�� 媛��졇�삩�떎. }; // 蹂��닔 紐⑥쓬 @@ -25,7 +25,7 @@ issueTableConfigs : [{ name : $filter("translate")("common.priority"), // �슦�꽑�닚�쐞 key : "PRIORITY", - width : "width-100-p", + width : "width-80-p", position : 1, display : true }, { @@ -41,8 +41,8 @@ position : 3, display : true }, { - name : $filter("translate")("common.assignee"), // �떞�떦�옄 - key : "ASSIGNEE", + name : $filter("translate")("common.assigneeTeam"), // �떞�떦遺��꽌 + key : "ASSIGNEE_TEAM", width : "width-100-p", position : 4, display : true @@ -64,6 +64,7 @@ width : "width-100-p", position : 7, display : false + }, { }] }; @@ -90,7 +91,10 @@ if (result.data.message.status === "success") { SweetAlert.success($filter("translate")("issue.completedSavingIssueTable"), $filter("translate")("issue.saveIssueTableSettingsInformation")); // "�씠�뒋 �뀒�씠釉� �꽕�젙 ���옣 �셿猷�", "�씠�뒋 �뀒�씠釉� �꽕�젙 �젙蹂닿� ���옣�릺�뿀�뒿�땲�떎." + // 蹂�寃쎈맂 �씠�뒋 �뀒�씠釉� �젙蹂대�� �씠�뒋 紐⑸줉 �뀒�씠釉붿뿉 媛깆떊�븳�떎. + swal.close(); + $scope.fn.cancel(); $rootScope.$broadcast("getIssueTableConfigs", {}); } else { @@ -125,15 +129,26 @@ return deferred.promise; } + var content = { + delValue : $scope.vm.issueTableConfigs.splice(7,1), + issueTableConfigs : JSON.stringify($scope.vm.issueTableConfigs) + }; // �씠�뒋 紐⑸줉 �뀒�씠釉� �꽕�젙 �젙蹂대�� 媛��졇�삩�떎. - function getIssueTableConfigs() { + function getIssueAddTableConfigs() { var deferred = $q.defer(); - IssueTableConfig.detail($resourceProvider.getContent({}, + IssueTableConfig.detail($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); // �씠�뒋 �뀒�씠釉� 而щ읆 議고쉶 �떎�뙣 } + + // for (var i = 0; i < result.data.name; i++) { + // if (result.data.name === '') { + // result.splice(i,1); + // i--; + // } + // } deferred.resolve(result.data.data); }); @@ -157,7 +172,7 @@ }); // �씠�뒋 紐⑸줉 �뀒�씠釉� �꽕�젙 �젙蹂대�� 媛��졇�삩�떎. - $scope.fn.getIssueTableConfigs().then(function (issueTableConfigs) { + $scope.fn.getIssueAddTableConfigs().then(function (issueTableConfigs) { if ($rootScope.isDefined(issueTableConfigs)) { $rootScope.spinner = true; -- Gitblit v1.8.0