설문관리 질문의 보기 리스트에 응답 컬럼 표현.
parent
57d669cbdc
commit
7933c125d5
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue