fix: 이미지 저장후 재로드 fix

main
Jonguk. Lim 2 years ago
parent 2fe861b02a
commit c9b73d928b

@ -279,6 +279,9 @@ Date Author Description
var callbackEnlightErpp = (data) => fnPopupBiz.callbackEnlightErpp(data)
let orgData;
let callPopup;
let isCtzn = false;
let imgPk = '';
let regltSeCode = '';
/* *******************************
* Biz function
@ -292,16 +295,21 @@ Date Author Description
,success: (res) => {
let dataKey = '';
let curId = '';
const regltSeCode = res.infoDTO.regltSeCode;
regltSeCode = res.infoDTO.regltSeCode;
if(regltSeCode === '${citizen}'){
dataKey = res.infoDTO.interfaceSeqN + ' - ' + res.infoDTO.ctznSttemntDetailSn;
curId = res.infoDTO.interfaceSeqN + res.infoDTO.ctznSttemntDetailSn;
isCtzn = true;
imgPk = res.infoDTO.interfaceSeqN;
dataKey = imgPk + ' - ' + res.infoDTO.ctznSttemntDetailSn;
curId = imgPk + res.infoDTO.ctznSttemntDetailSn;
}else{
dataKey = res.infoDTO.extrlRegltCntcId;
curId = dataKey;
isCtzn = false;
imgPk = res.infoDTO.extrlRegltCntcId;
dataKey = imgPk;
curId = imgPk;
}
$('#txtTitle').html(
ComboCodeData.regltSeCode.filter(d => d.value === res.infoDTO.regltSeCode)[0].text
ComboCodeData.regltSeCode.filter(d => d.value === regltSeCode)[0].text
+ '   [ ' + dataKey + ' ]'
);
cmmImgDownload('#imgList', res.attchFiles, fnPopupBiz.pagePopup, true, '60px',
@ -316,6 +324,16 @@ Date Author Description
}
})
}
,downloadImg: () => {
cmmAjax({
showSuccessMsg: false
,url: isCtzn? fimsApiUrl.FIND_EC_NATL_NEWS_PAPER_ATTCH_FILES : fimsApiUrl.FIND_EC_EXTRL_REGLT_CNTC_ATTCH_FILES
,data: isCtzn? {interfaceSeqN: imgPk} : {extrlRegltCntcId: imgPk, regltSeCode: regltSeCode}
,success: (res) => {
cmmImgDownload('#imgList', res.data?.contents, fnPopupBiz.pagePopup, true);
}
})
}
,pagePopup: function(flag, params) {
let url;
let popTitle;

Loading…
Cancel
Save