Index: arms/html/reqAdd/content-container.html =================================================================== diff -u -r335fb105cf787efdc4f10729d0cf6c885e6d24a8 -r4ab0bb143d882e322048c0b83f0e27c69bd7e3e0 --- arms/html/reqAdd/content-container.html (.../content-container.html) (revision 335fb105cf787efdc4f10729d0cf6c885e6d24a8) +++ arms/html/reqAdd/content-container.html (.../content-container.html) (revision 4ab0bb143d882e322048c0b83f0e27c69bd7e3e0) @@ -2314,4 +2314,8 @@ td.closeStatus{ color : #2477FF; } + a{ + color :white; + } + \ No newline at end of file Index: arms/js/reqAddTable.js =================================================================== diff -u -r335fb105cf787efdc4f10729d0cf6c885e6d24a8 -r4ab0bb143d882e322048c0b83f0e27c69bd7e3e0 --- arms/js/reqAddTable.js (.../reqAddTable.js) (revision 335fb105cf787efdc4f10729d0cf6c885e6d24a8) +++ arms/js/reqAddTable.js (.../reqAddTable.js) (revision 4ab0bb143d882e322048c0b83f0e27c69bd7e3e0) @@ -641,19 +641,36 @@ const $col = this.makeElement(tag); $col.className = key; if (tag === "td") { - if ((["status"].includes(key) && cur.category !== "Group") || ["priority"].includes(key)) { + if ((["status"].includes(key) && cur.category !== "Group")) { + const iconData = this.mappingStateIcon(cur[key]); $col.innerHTML = ` - `; - }else if( ["difficulty"].includes(key)){ + `; + // $col.style = "text-align:left"; + + } + else if( ["priority"].includes(key)){ + const iconData = this.mappingPriorityIcon(cur[key]); $col.innerHTML = ` `; + //$col.style = "text-align:left"; + } + else if( ["difficulty"].includes(key)){ + const iconData = this.mappingDifficultyIcon(cur[key]); + $col.innerHTML = ` + `; + //$col.style = "text-align:left"; + + } else if(['content'].includes($col.className)){ $col.prepend(this.makeEditableButton(cur, key)); }else{ @@ -675,7 +692,43 @@ return [...acc, $tr]; }, []); } - + mappingStateIcon(key){ + if(key ==="열림"){ + return ' 열림'; + }else if(key ==="진행중"){ + return ' 진행중'; + }else if(key ==="해결됨"){ + return ' 해결됨'; + }else if(key ==="닫힘"){ + return ' 닫힘'; + } + } + mappingPriorityIcon(key){ + if(key ==="매우 높음"){ + return ' 매우 높음'; + }else if(key ==="높음"){ + return ' 높음'; + }else if(key ==="중간"){ + return ' 중간'; + }else if(key ==="낮음"){ + return ' 낮음'; + }else if(key ==="매우 낮음"){ + return ' 매우 낮음'; + } + } + mappingDifficultyIcon(key){ + if(key ==="매우 어려움"){ + return ' 매우 어려움'; + }else if(key ==="어려움"){ + return ' 어려움'; + }else if(key ==="보통"){ + return ' 보통'; + }else if(key ==="쉬움"){ + return ' 쉬움'; + }else if(key ==="매우 쉬움"){ + return ' 매우 쉬움'; + } + } updateData(reqId, editContents) { // 초기 데이터 객체 생성 let dataToSend = {