refactor:[PMS:#2892]답변서 클릭 오류 해결
This commit is contained in:
parent
1919232a40
commit
a918ffc965
@ -213,7 +213,10 @@ public class AdjstReqWebController {
|
|||||||
// List<FileVO> fileList = fileService.selectFileInfs(fileVO);
|
// List<FileVO> fileList = fileService.selectFileInfs(fileVO);
|
||||||
// model.addAttribute("fileList", fileList);
|
// model.addAttribute("fileList", fileList);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
model.addAttribute("exmpList", exmpList);
|
model.addAttribute("exmpList", exmpList);
|
||||||
|
model.addAttribute("exmpCd", adjstReqVO.getExmpCd());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -34,8 +34,19 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 신청취지 텍스트에 추가
|
// 신청취지 텍스트에 추가
|
||||||
function addText(obj){
|
function addText(obj, exmpCd){
|
||||||
$('#reqCn1').text($('#reqCn1').text().trim()+' '+obj.text);
|
// 답변서 code == 04
|
||||||
|
if(exmpCd == '04')
|
||||||
|
{
|
||||||
|
$('#adrDocCn1').text(obj.text);
|
||||||
|
$(".tooltip-close").trigger("click");
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$('#reqCn1').text($('#reqCn1').text().trim()+' '+obj.text);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@ -45,8 +56,20 @@ function addText(obj){
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<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">
|
<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">
|
<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>
|
||||||
<div class="popup_cont">
|
<div class="popup_cont">
|
||||||
<c:forEach var="list" items="${exmpList}" varStatus="status">
|
<c:forEach var="list" items="${exmpList}" varStatus="status">
|
||||||
@ -57,7 +80,7 @@ function addText(obj){
|
|||||||
</div>
|
</div>
|
||||||
<div class="work_cont">
|
<div class="work_cont">
|
||||||
<div class="text">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1048,7 +1048,6 @@ var AdjstReq = {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
openExamplePop : function(expmCd){
|
openExamplePop : function(expmCd){
|
||||||
console.log(" + expmCd :: ", expmCd);
|
|
||||||
commonPopLayeropen(
|
commonPopLayeropen(
|
||||||
"/web/kccadr/adjst/popup/adjstReqOpenExamplePop.do"
|
"/web/kccadr/adjst/popup/adjstReqOpenExamplePop.do"
|
||||||
, 1100
|
, 1100
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user