Index: arms/html/reqKanban/content-container.html
===================================================================
diff -u -r242a04c90d0e1fb1e058574794cea3e0baf06229 -ra6b516f05ffa2b125fcf8b173abe1817adc50d11
--- arms/html/reqKanban/content-container.html (.../content-container.html) (revision 242a04c90d0e1fb1e058574794cea3e0baf06229)
+++ arms/html/reqKanban/content-container.html (.../content-container.html) (revision a6b516f05ffa2b125fcf8b173abe1817adc50d11)
@@ -164,7 +164,7 @@
✔ 총 요구사항 개수 :
n/a
@@ -178,7 +178,7 @@
✔ 열린 요구사항 개수 :
n/a
@@ -192,7 +192,7 @@
✔ 진행 중인 요구사항 개수 :
n/a
@@ -206,7 +206,7 @@
✔ 해결된 요구사항 개수 :
n/a
@@ -220,7 +220,7 @@
✔ 닫힌 요구사항 개수 :
n/a
Index: arms/js/reqKanban.js
===================================================================
diff -u -r0e3a5693602d94493b5a268df7c23869c4524bf2 -ra6b516f05ffa2b125fcf8b173abe1817adc50d11
--- arms/js/reqKanban.js (.../reqKanban.js) (revision 0e3a5693602d94493b5a268df7c23869c4524bf2)
+++ arms/js/reqKanban.js (.../reqKanban.js) (revision a6b516f05ffa2b125fcf8b173abe1817adc50d11)
@@ -3,8 +3,8 @@
const reqStateToIdMapping = { // 요구사항 상태에 id 매핑
'열림': 'kanban-open',
'진행중': 'kanban-progress',
- '해결됨': 'kanban-resolved',
- '닫힘': 'kanban-closed'
+ '해결됨': 'kanban-resolve',
+ '닫힘': 'kanban-close'
};
////////////////////////////////////////////////////////////////////////////////////////
//Document Ready
@@ -213,8 +213,10 @@
return reqList;
}, {});
+ //console.log("[ reqKanban :: changeMultipleSelected ] :: 요구사항 상태 별 리스트 => ", JSON.stringify(reqListByState));
- //console.log("reqListByState: ", JSON.stringify(reqListByState));
+ // 요구사항 개수 표시
+ setReqCount(reqListByState);
// 칸반 보드 구성
const reqBoardByState = Object.keys(reqStateToIdMapping).map(state => ({
@@ -234,6 +236,22 @@
});
}
+function setReqCount(reqListByState) {
+
+ let open = (reqListByState["열림"] && reqListByState["열림"].length) || 0;
+ let progress = (reqListByState["진행중"] && reqListByState["진행중"].length) || 0;
+ let resolve = (reqListByState["해결됨"] && reqListByState["해결됨"].length) || 0;
+ let close = (reqListByState["닫힘"] && reqListByState["닫힘"].length) || 0;
+ let total = open + progress + resolve + close;
+
+ $("#req-count").text(total);
+ $("#req-open-count").text(open);
+ $("#req-progress-count").text(progress);
+ $("#req-resolve-count").text(resolve);
+ $("#req-close-count").text(close);
+
+}
+
function loadKanban(reqListByState, reqBoardByState) {
$("#myKanban").empty();