설문관리 질문의 보기 리스트에 응답 컬럼 표현.

thkim
강석 최 2024-03-11 17:51:40 +09:00
parent 57d669cbdc
commit 7933c125d5
1 changed files with 12 additions and 1 deletions

View File

@ -57,7 +57,7 @@ function QuestionModal({svySeq}){
qtItemSeq: null,
qtSeq:null,
itemNm: null,
questionYn:null
questionYn:'Y'
})
setSelectedQt(temp);
}
@ -228,11 +228,13 @@ function QuestionModal({svySeq}){
<Table className={`mb-3 ${selectedQt?.qtType===3?'d-none':''}`}>
<colgroup>
<col/>
<col className={"w_50"}/>
<col className={"w_100"}/>
</colgroup>
<thead>
<tr>
<th>보기</th>
<th>응답</th>
<th>삭제</th>
</tr>
</thead>
@ -248,6 +250,15 @@ function QuestionModal({svySeq}){
setSelectedQt(qt);
}}/>
</td>
<td>
<Form.Check type="checkbox" name="questionYn"
defaultChecked={item.questionYn==='Y'} checked={item.questionYn==='Y'}
onClick={(e)=>{
const qt = {...selectedQt}
qt.itemList[index].questionYn = e.target.checked?'Y':'N'
setSelectedQt(qt);
}}/>
</td>
<td>
<button className={"btn btn_red_h31"} onClick={()=>removeItem(index)}>삭제</button>
</td>