|
|
|
@ -352,13 +352,14 @@
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let filename = '';
|
|
|
|
|
let parameter = toQuery({
|
|
|
|
|
dscdmngIds : dscdmngIds.join(","),
|
|
|
|
|
userId : "${currentUser.account}",
|
|
|
|
|
deptCd: "${currentUser.deptCode}",
|
|
|
|
|
adds12: ADDS12
|
|
|
|
|
});
|
|
|
|
|
fetch(wctx.url("/adds/nims/getHwpForRptDoc.do") + "?" + parameter)
|
|
|
|
|
fetch(wctx.url("/adds/nims/getHwpForRptDoc.do?") + parameter)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
let header = response.headers.get('Content-Disposition');
|
|
|
|
|
if(!header){
|
|
|
|
@ -370,10 +371,11 @@
|
|
|
|
|
init: () => { setDialogZindex(); }
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
new Error("");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let parts = header.split(';');
|
|
|
|
|
let filename = decodeURIComponent(parts[1].split('=')[1]);
|
|
|
|
|
filename = decodeURIComponent(parts[1].split('=')[1]);
|
|
|
|
|
if(filename.startsWith("\"")){
|
|
|
|
|
filename = filename.substring(1);
|
|
|
|
|
}
|
|
|
|
@ -396,7 +398,10 @@
|
|
|
|
|
$P.control.load($P.control.pageNum);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(()=>{});
|
|
|
|
|
.catch((e)=>{
|
|
|
|
|
//console.error(e);
|
|
|
|
|
//alert(e)
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 업체 검색 버튼 이벤트
|
|
|
|
|