fix: 보고문서관리 fix

dev
Jonguk. Lim 4 months ago
parent 8f161d7fad
commit b075a9d943

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

Loading…
Cancel
Save