fix : 수정 중

main
이범준 1 year ago
parent 1a8cc06d3d
commit 6a9f204a03

@ -169,8 +169,10 @@ public class FimsCrackDownMgtController extends AbstractController {
public ModelAndView findCrackdownInfoAndAttchFiles(final FimsCrackdownDTO.Request dto) {
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
mav.addAllObjects(service.findCrackdownInfo(dto));
mav.addObject("attchFiles", rtService.findRtRegltAttchFiles(dto));
Map<String,Object> dtlData = service.findCrackdownInfo(dto);
mav.addAllObjects(dtlData);
mav.addObject("attchFiles", null);
//mav.addObject("attchFiles", rtService.findRtRegltAttchFiles(dto));
return mav;
}

@ -29,9 +29,7 @@ Date Author Description
background-color: darkred;
}
.curImgData {
border: 1px solid black;
}
/* 단속 건수 */
.empCls {
color: #2a48ff;
@ -320,7 +318,7 @@ Date Author Description
,data: params
,success: (res) => {
let dataKey = '';
let curId = '';
let curId = res.infoDTO.crdnId;
let vhrnoCnt = 0;
crdnSeCd = res.infoDTO.crdnSeCd;
@ -328,17 +326,18 @@ Date Author Description
isCtzn = true;
imgPk = res.infoDTO.interfaceSeqN;
dataKey = imgPk + ' - ' + res.infoDTO.ctznSttemntDetailSn;
curId = imgPk + res.infoDTO.ctznSttemntDetailSn;
}else{
isCtzn = false;
imgPk = res.infoDTO.extrlRegltCntcId;
dataKey = imgPk;
curId = imgPk;
}
$('#txtTitle').html(
ComboCodeData.crdnSeCd.filter(d => d.value === crdnSeCd)[0].text
+ '&nbsp;&nbsp;&nbsp;[&nbsp;' + dataKey + '&nbsp;]'
);
let crdnSeNm = "";
if(crdnSeCd != null && crdnSeCd != ""){
crdnSeNm = ComboCodeData.crdnSeCd.filter(d => d.value === crdnSeCd)[0].text;
}
$('#txtTitle').html(crdnSeNm + '&nbsp;&nbsp;&nbsp;[&nbsp;' + dataKey + '&nbsp;]');
fnPopupBiz.showCrackdownVhrnoCnt(res.infoDTO.vhrnoCnt);
fnPopupBiz.showMinwonCnt(res.infoDTO.minwonCnt);
schParam = {
@ -349,7 +348,7 @@ Date Author Description
}
cmmImgDownload('#imgList', res.attchFiles, fnPopupBiz.pagePopup, true, '60px',
() => document.getElementById(curId).className += ' curImgData'
() => ''
);
let navObj = {};

@ -29,9 +29,7 @@ Date Author Description
.act_bg_color {
background-color: #d8e7ff;
}
.curImgData {
border: 1px solid black;
}
</style>
<%--2022.10.05 박소영 웹폰트 링크 추가--%>
@ -910,15 +908,10 @@ Date Author Description
,url: fimsApiUrl.FIND_CRACKDOWN_INFO
,data: params
,success: (res) => {
let curId = '';
const crdnSeCd = res.infoDTO.crdnSeCd;
if(crdnSeCd === '${citizen}'){
curId = res.infoDTO.interfaceSeqN + res.infoDTO.ctznSttemntDetailSn;
}else{
curId = res.infoDTO.extrlRegltCntcId;
}
let curId = res.infoDTO.crdnId;
cmmImgDownload('#imgList', res.attchFiles, fnPopupBiz.pagePopup, true, '60px',
() => document.getElementById(curId).className += ' curImgData'
() => ''
);
let navObj = {};

@ -15,7 +15,7 @@ function cmmImgDownload(divImgListElementId, cmmFileDtls, fnBizPagePopup = fnBiz
const downloadUrl = '/framework/biz/cmm/file/download.do';
$(divImgListElementId).children().remove();
if(cmmFileDtls != null){
cmmFileDtls.forEach((dtl, idx) => {
let imgDiv = document.getElementById(dtl.fileJobId);
if(!imgDiv?.hasChildNodes()){
@ -57,7 +57,9 @@ function cmmImgDownload(divImgListElementId, cmmFileDtls, fnBizPagePopup = fnBiz
})
imgDiv.appendChild(x);
document.querySelector(divImgListElementId).appendChild(imgDiv);
})
});
}
dragable();
if(callback) callback();
}

Loading…
Cancel
Save