refactor:[PMS:#2892]답변서 클릭 오류 해결

This commit is contained in:
hylee 2022-11-16 16:16:13 +09:00
parent 1919232a40
commit a918ffc965
3 changed files with 30 additions and 5 deletions

View File

@ -213,7 +213,10 @@ public class AdjstReqWebController {
// List<FileVO> fileList = fileService.selectFileInfs(fileVO);
// model.addAttribute("fileList", fileList);
// }
model.addAttribute("exmpList", exmpList);
model.addAttribute("exmpCd", adjstReqVO.getExmpCd());

View File

@ -34,8 +34,19 @@ $(document).ready(function(){
});
// 신청취지 텍스트에 추가
function addText(obj){
$('#reqCn1').text($('#reqCn1').text().trim()+' '+obj.text);
function addText(obj, exmpCd){
// 답변서 code == 04
if(exmpCd == '04')
{
$('#adrDocCn1').text(obj.text);
$(".tooltip-close").trigger("click");
}
else
{
$('#reqCn1').text($('#reqCn1').text().trim()+' '+obj.text);
}
}
</script>
@ -45,8 +56,20 @@ function addText(obj){
</head>
<body>
<div class="popup_wrap fee_info_popup" style="max-width: 580px;" tabindex="0" data-tooltip-con="fee_info_popup" data-focus="fee_info_popup" data-focus-prev="fee_info_popup_close">
<!-- 답변서 code 04 -->
<c:choose>
<c:when test="${exmpCd eq '04' }">
<c:set var="titleText" value="답변서" />
</c:when>
<c:otherwise>
<c:set var="titleText" value="청구취지" />
</c:otherwise>
</c:choose>
<div class="popup_tit">
<p>청구취지 작성예시</p> <button class="btn_popup_close tooltip-close" data-focus="fee_info_popup_close" title="팝업 닫기"><i></i></button>
<p>${titleText } 작성예시</p> <button class="btn_popup_close tooltip-close" data-focus="fee_info_popup_close" title="팝업 닫기"><i></i></button>
</div>
<div class="popup_cont">
<c:forEach var="list" items="${exmpList}" varStatus="status">
@ -57,7 +80,7 @@ function addText(obj){
</div>
<div class="work_cont">
<div class="text">
<a href="#" onclick="addText(this); return false;"><c:out value="${list.exmpCn}"/></a>
<a href="javascript:;" onclick="addText(this, '${exmpCd}'); return false;"><c:out value="${list.exmpCn}"/></a>
</div>
</div>
</div>

View File

@ -1048,7 +1048,6 @@ var AdjstReq = {
);
},
openExamplePop : function(expmCd){
console.log(" + expmCd :: ", expmCd);
commonPopLayeropen(
"/web/kccadr/adjst/popup/adjstReqOpenExamplePop.do"
, 1100