refactor:예문 팝업 jstl 추가

This commit is contained in:
hylee 2022-11-21 09:51:10 +09:00
parent e0fb1bc8c1
commit 6f6bce32c3
2 changed files with 13 additions and 20 deletions

View File

@ -19,6 +19,7 @@ import org.json.simple.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.env.SystemEnvironmentPropertySource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
@ -659,6 +660,7 @@ public class ApmController {
// List<FileVO> fileList = fileService.selectFileInfs(fileVO);
// model.addAttribute("fileList", fileList);
// }
model.addAttribute("exmpList", exmp);
model.addAttribute("ccTy", adjstReqVO.getCcTy());
model.addAttribute("exmpCd", adjstReqVO.getExmpCd());

View File

@ -114,28 +114,19 @@ function workView(obj){
</head>
<body>
<div class="popup_cont" style="max-height: none;">
<div class="work_flow_wrap off">
<div class="work_tit">
<p>예문 1</p>
<button type="button" title="열림" class="btn_open" onclick="workView(this);"><i></i></button>
</div>
<div class="work_cont">
<div class="text">
<a href="javascript:;" onclick="addText(this, '01'); return false;">예문 1 내용</a>
<c:forEach items="${exmpList }" var="exmp">
<div class="work_flow_wrap off">
<div class="work_tit">
<p><c:out value="${exmp.exmpTit }" /></p>
<button type="button" title="열림" class="btn_open" onclick="workView(this);"><i></i></button>
</div>
<div class="work_cont">
<div class="text">
<a href="javascript:;" onclick="addText(this, '01'); return false;"><c:out value="${exmp.exmpCn }" /></a>
</div>
</div>
</div>
</div>
<div class="work_flow_wrap off">
<div class="work_tit">
<p>test33</p>
<button type="button" title="열림" class="btn_open" onclick="workView(this);"><i></i></button>
</div>
<div class="work_cont">
<div class="text">
<a href="javascript:;" onclick="addText(this, '01'); return false;">testdddd</a>
</div>
</div>
</div>
</c:forEach>
</div>
</body>
</html>