Index: arms/html/dashboard/content-container.html =================================================================== diff -u -rf6737d3fe7330eeb0b36ef69be00e13626f4dd3f -r7d1c3969725343552d65414b8dd351a4a7f9e40f --- arms/html/dashboard/content-container.html (.../content-container.html) (revision f6737d3fe7330eeb0b36ef69be00e13626f4dd3f) +++ arms/html/dashboard/content-container.html (.../content-container.html) (revision 7d1c3969725343552d65414b8dd351a4a7f9e40f) @@ -86,8 +86,8 @@ -
-
+
+

- 이번 달에 진행 중인 요구사항 + 진행 중인 요구사항
+
+ +
-
-
+
+

- 이번 달에 해결된 요구사항 + 해결된 요구사항
+
+ / + +
Index: arms/js/dashboard.js =================================================================== diff -u -rf6737d3fe7330eeb0b36ef69be00e13626f4dd3f -r7d1c3969725343552d65414b8dd351a4a7f9e40f --- arms/js/dashboard.js (.../dashboard.js) (revision f6737d3fe7330eeb0b36ef69be00e13626f4dd3f) +++ arms/js/dashboard.js (.../dashboard.js) (revision 7d1c3969725343552d65414b8dd351a4a7f9e40f) @@ -126,11 +126,11 @@ endPointUrl = "/T_ARMS_REQSTATUS_" + $("#selected_pdService").val() + "/getStatusMonitor.do?disable=false"; } - // //이슈리스트 데이터테이블 - // dataTableLoad($("#selected_pdService").val(), endPointUrl); - // //통계로드 - // statisticsLoad($("#selected_pdService").val(), null); - // //진행상태 가져오기 + //이슈리스트 진행 상황 + getIssueStatus($("#selected_pdService").val(), endPointUrl); + //통계로드 + statisticsLoad($("#selected_pdService").val(), null); + //진행상태 가져오기 // progressLoad($("#selected_pdService").val(), null); }); @@ -178,11 +178,7 @@ console.log(key + "=" + value); } - $('#version_count').text(data["version"]); $('#req_count').text(data["req"]); - $('#alm_server_count').text(data["jiraServer"]); - $('#alm_project_count').text(data["jiraProject"]); - $('#alm_issue_count').text(data["issue"]); } } }); @@ -235,3 +231,32 @@ }); } +//////////////////////////////////////////////////////////////////////////////////////// +//이슈 리스트 진행 상황 +//////////////////////////////////////////////////////////////////////////////////////// +function getIssueStatus(selectId, endPointUrl) { + $.ajax({ + url: "/auth-user/api/arms/reqStatus" + endPointUrl, + type: "GET", + dataType: "json", + progress: true, + statusCode: { + 200: function (data) { + ////////////////////////////////////////////////////////// + var resolvedCount = 0; + var closedCount = 0; + for (var k in data) { + var obj = data[k]; + if (obj.state === "resolve") { + resolvedCount++; + } else if (obj.state === "closed") { + closedCount++; + } + } + $("#resolved_count").text(resolvedCount); + $("#closed_count").text(closedCount); + ////////////////////////////////////////////////////////// + } + } + }); +}