diff --git a/src/pages/DemandNote/Search/DataGrid.js b/src/pages/DemandNote/Search/DataGrid.js index 5c3ab52..d533c88 100644 --- a/src/pages/DemandNote/Search/DataGrid.js +++ b/src/pages/DemandNote/Search/DataGrid.js @@ -70,10 +70,10 @@ export default function SearchDemandNote({ recordList, reloadFun }) { const doUploadFile = (event) => { let file = event.target.files[0]; HttpUtils.postWithFiles({ - url:"", + url:UrlUtils.DEMAND_NOTE_ATTACH, files:[file], onSuccess() { - 202222 + if (reloadFun) reloadFun(); }, }); document.getElementById("uploadFileBtn").value = ""; diff --git a/src/utils/ApiPathConst.js b/src/utils/ApiPathConst.js index a87cd0c..f3d1b0f 100644 --- a/src/utils/ApiPathConst.js +++ b/src/utils/ApiPathConst.js @@ -104,6 +104,7 @@ export const DEMAND_NOTE_LIST = apiPath+'/demandNote/list';//GET export const DEMAND_NOTE_LOAD = apiPath+'/demandNote/load';//GET export const DEMAND_NOTE_SEND = apiPath+'/demandNote/send-dn';//POST export const DEMAND_NOTE_MARK_PAID = apiPath+'/demandNote/mark-as-paid';//POST +export const DEMAND_NOTE_ATTACH = apiPath+'/demandNote/attach';//POST