From 10065aade248c518bcf18ef600a0334f15b835de Mon Sep 17 00:00:00 2001 From: anna Date: Wed, 3 Jan 2024 15:38:23 +0800 Subject: [PATCH] update API Path --- src/pages/DemandNote/Search/DataGrid.js | 4 ++-- src/utils/ApiPathConst.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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