From e04601448ef694494b3a62a036f6a7cd496f7e5a Mon Sep 17 00:00:00 2001 From: Alex Cheung Date: Thu, 11 Apr 2024 14:39:02 +0800 Subject: [PATCH] update Authority --- src/pages/DemandNote/Search/index.js | 6 +++--- src/pages/DemandNote/Search_Public/index.js | 4 ++-- src/utils/ApiPathConst.js | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/pages/DemandNote/Search/index.js b/src/pages/DemandNote/Search/index.js index 51dd08f..cced1f0 100644 --- a/src/pages/DemandNote/Search/index.js +++ b/src/pages/DemandNote/Search/index.js @@ -30,7 +30,7 @@ const BackgroundHead = { // ==============================|| DASHBOARD - DEFAULT ||============================== // -const UserSearchPage_Individual = () => { +const SearchPage_DemandNote = () => { const [record, setRecord] = React.useState([]); const [orgCombo, setOrgCombo] = React.useState([]); @@ -59,7 +59,7 @@ const UserSearchPage_Individual = () => { function getUserList() { HttpUtils.get({ - url: UrlUtils.DEMAND_NOTE_LIST, + url: UrlUtils.DEMAND_NOTE_LIST_ALL, params: searchCriteria, onSuccess: function (responseData) { setRecord(responseData); @@ -138,4 +138,4 @@ const UserSearchPage_Individual = () => { ); } -export default UserSearchPage_Individual; +export default SearchPage_DemandNote; diff --git a/src/pages/DemandNote/Search_Public/index.js b/src/pages/DemandNote/Search_Public/index.js index b90cd79..37c4949 100644 --- a/src/pages/DemandNote/Search_Public/index.js +++ b/src/pages/DemandNote/Search_Public/index.js @@ -30,7 +30,7 @@ const BackgroundHead = { // ==============================|| DASHBOARD - DEFAULT ||============================== // -const UserSearchPage_Individual = () => { +const SearchPage_DemandNote_Pub = () => { const [record, setRecord] = React.useState([]); const [orgCombo, setOrgCombo] = React.useState([]); @@ -133,4 +133,4 @@ const UserSearchPage_Individual = () => { ); } -export default UserSearchPage_Individual; +export default SearchPage_DemandNote_Pub; diff --git a/src/utils/ApiPathConst.js b/src/utils/ApiPathConst.js index 0ef48e9..3a50e42 100644 --- a/src/utils/ApiPathConst.js +++ b/src/utils/ApiPathConst.js @@ -154,7 +154,8 @@ export const PAYMENT_STATUS_API = paymentPath+'/api/payment/status/';//GET export const DEMAND_NOTE_PREVIEW = apiPath+'/demandNote/preview';//GET export const DEMAND_NOTE_CREATE = apiPath+'/demandNote/create';//POST -export const DEMAND_NOTE_LIST = apiPath+'/demandNote/list';//GET +export const DEMAND_NOTE_LIST = apiPath+'/demandNote/list';//GET pub +export const DEMAND_NOTE_LIST_ALL = apiPath+'/demandNote/listAll';//GET gld 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