설문관리 질문의 보기 리스트에 응답 컬럼 표현.
parent
57d669cbdc
commit
7933c125d5
|
|
@ -57,7 +57,7 @@ function QuestionModal({svySeq}){
|
||||||
qtItemSeq: null,
|
qtItemSeq: null,
|
||||||
qtSeq:null,
|
qtSeq:null,
|
||||||
itemNm: null,
|
itemNm: null,
|
||||||
questionYn:null
|
questionYn:'Y'
|
||||||
})
|
})
|
||||||
setSelectedQt(temp);
|
setSelectedQt(temp);
|
||||||
}
|
}
|
||||||
|
|
@ -228,11 +228,13 @@ function QuestionModal({svySeq}){
|
||||||
<Table className={`mb-3 ${selectedQt?.qtType===3?'d-none':''}`}>
|
<Table className={`mb-3 ${selectedQt?.qtType===3?'d-none':''}`}>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col/>
|
<col/>
|
||||||
|
<col className={"w_50"}/>
|
||||||
<col className={"w_100"}/>
|
<col className={"w_100"}/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>보기</th>
|
<th>보기</th>
|
||||||
|
<th>응답</th>
|
||||||
<th>삭제</th>
|
<th>삭제</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
@ -248,6 +250,15 @@ function QuestionModal({svySeq}){
|
||||||
setSelectedQt(qt);
|
setSelectedQt(qt);
|
||||||
}}/>
|
}}/>
|
||||||
</td>
|
</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>
|
<td>
|
||||||
<button className={"btn btn_red_h31"} onClick={()=>removeItem(index)}>삭제</button>
|
<button className={"btn btn_red_h31"} onClick={()=>removeItem(index)}>삭제</button>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue