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) var callbackEnlightErpp = (data) => fnPopupBiz.callbackEnlightErpp(data)
let orgData; let orgData;
let callPopup; let callPopup;
let isCtzn = false;
let imgPk = '';
let regltSeCode = '';
/* ******************************* /* *******************************
* Biz function * Biz function
@ -292,16 +295,21 @@ Date Author Description
,success: (res) => { ,success: (res) => {
let dataKey = ''; let dataKey = '';
let curId = ''; let curId = '';
const regltSeCode = res.infoDTO.regltSeCode; regltSeCode = res.infoDTO.regltSeCode;
if(regltSeCode === '${citizen}'){ if(regltSeCode === '${citizen}'){
dataKey = res.infoDTO.interfaceSeqN + ' - ' + res.infoDTO.ctznSttemntDetailSn; isCtzn = true;
curId = res.infoDTO.interfaceSeqN + res.infoDTO.ctznSttemntDetailSn; imgPk = res.infoDTO.interfaceSeqN;
dataKey = imgPk + ' - ' + res.infoDTO.ctznSttemntDetailSn;
curId = imgPk + res.infoDTO.ctznSttemntDetailSn;
}else{ }else{
dataKey = res.infoDTO.extrlRegltCntcId; isCtzn = false;
curId = dataKey; imgPk = res.infoDTO.extrlRegltCntcId;
dataKey = imgPk;
curId = imgPk;
} }
$('#txtTitle').html( $('#txtTitle').html(
ComboCodeData.regltSeCode.filter(d => d.value === res.infoDTO.regltSeCode)[0].text ComboCodeData.regltSeCode.filter(d => d.value === regltSeCode)[0].text
+ '   [ ' + dataKey + ' ]' + '   [ ' + dataKey + ' ]'
); );
cmmImgDownload('#imgList', res.attchFiles, fnPopupBiz.pagePopup, true, '60px', 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) { ,pagePopup: function(flag, params) {
let url; let url;
let popTitle; let popTitle;

Loading…
Cancel
Save