瀏覽代碼

Merge branch 'New_Enhancement' into CR013B1

CR013B1
Alex Cheung 1 天之前
父節點
當前提交
612ea34da6
共有 15 個檔案被更改,包括 33 行新增0 行删除
  1. +3
    -0
      src/components/FiDataGrid.js
  2. +2
    -0
      src/pages/Announcement/Search/SearchForm.js
  3. +2
    -0
      src/pages/Announcement/Search_Public/SearchForm.js
  4. +2
    -0
      src/pages/AuditLog/AuditLogSearchForm.js
  5. +2
    -0
      src/pages/DemandNote/Create/SearchForm.js
  6. +2
    -0
      src/pages/DemandNote/Export/SearchForm.js
  7. +2
    -0
      src/pages/DemandNote/Search/SearchForm.js
  8. +2
    -0
      src/pages/Message/Search/SearchForm.js
  9. +3
    -0
      src/pages/Payment/Search_GLD/SearchForm.js
  10. +2
    -0
      src/pages/Payment/Search_Public/SearchForm.js
  11. +2
    -0
      src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js
  12. +3
    -0
      src/pages/PublicNotice/Search_GLD/SearchForm.js
  13. +2
    -0
      src/pages/PublicNotice/Search_Mark_As_Paid_GLD/SearchForm.js
  14. +2
    -0
      src/pages/User/SearchPage/UserSearchForm.js
  15. +2
    -0
      src/pages/User/SearchPage_Organization/UserSearchForm_Organization.js

+ 3
- 0
src/components/FiDataGrid.js 查看文件

@@ -56,12 +56,15 @@ export function FiDataGrid({ rows, columns, sx, autoHeight,
if(applySearch!=undefined){
if (Object.keys(getSearchCriteria(window.location.pathname)).length>0){
const localStorageSearchCriteria = getSearchCriteria(window.location.pathname)
console.log(localStorageSearchCriteria)
if(localStorageSearchCriteria.start!=undefined){
console.log(localStorageSearchCriteria)
setPage(localStorageSearchCriteria.start/pageSize);
}
}
}else{
setPage(0);
setPageSize(parseInt(event.target.value, 10));
}
set_doLoad(doLoad);
setLoading(true)


+ 2
- 0
src/pages/Announcement/Search/SearchForm.js 查看文件

@@ -51,6 +51,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, onGridReady}) =>
key: data.key,
dateFrom: sentDateFrom,
dateTo: sentDateTo,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/Announcement/Search_Public/SearchForm.js 查看文件

@@ -68,6 +68,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, onGridReady }) =>
key: data.key,
dateFrom: sentDateFrom,
dateTo: sentDateTo,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/AuditLog/AuditLogSearchForm.js 查看文件

@@ -66,6 +66,8 @@ const AuditLogSearchForm = ({ applySearch, searchCriteria, onGridReady}) => {
username: data.userName,
modifiedTo: sentDateTo,
modifiedFrom: sentDateFrom,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/DemandNote/Create/SearchForm.js 查看文件

@@ -136,6 +136,8 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p
}
const temp = {
issueId: issueSelected.id,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/DemandNote/Export/SearchForm.js 查看文件

@@ -137,6 +137,8 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData }) => {
}
const temp = {
issueId: issueSelected.id,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/DemandNote/Search/SearchForm.js 查看文件

@@ -115,6 +115,8 @@ const SearchDemandNoteForm = ({ applySearch, orgComboData, searchCriteria, issue
dueDateFrom: sentDueDateFrom,
dueDateTo: sentDueDateTo,
status: (data?.status === '' || data?.status?.includes("all")) ? "" : data.status,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/Message/Search/SearchForm.js 查看文件

@@ -67,6 +67,8 @@ const SearchForm = ({ applySearch, searchCriteria, onGridReady }) => {
keyword: data.keyword,
dateFrom: sentDateFrom,
dateTo: sentDateTo,
start:0,
limit:10
};
applySearch(temp);
};


+ 3
- 0
src/pages/Payment/Search_GLD/SearchForm.js 查看文件

@@ -66,6 +66,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, onGridReady }) =>
dateFrom: sentDateFrom,
dateTo: sentDateTo,
status : (status?.type && status?.type != 'all') ? status?.type : "",
start:0,
limit:10
};
applySearch(temp);
};
@@ -78,6 +80,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, onGridReady }) =>
code:"",
transNo:""
});
localStorage.setItem('searchCriteria',"")
}




+ 2
- 0
src/pages/Payment/Search_Public/SearchForm.js 查看文件

@@ -70,6 +70,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, onGridReady }) =>
dateFrom: sentDateFrom,
dateTo: sentDateTo,
status : (status?.type && status?.type != 'all') ? status?.type : "",
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js 查看文件

@@ -92,6 +92,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, onGridReady }) =>
contact: data.contact,
careOf: data.careOf?data.careOf:"",
status: (data.status === "" || data.status.includes('all')) ? "" : data.status,
start:0,
limit:10
};
applySearch(temp);
};


+ 3
- 0
src/pages/PublicNotice/Search_GLD/SearchForm.js 查看文件

@@ -64,6 +64,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss
const marginBottom = 2.5;
const { reset, register, handleSubmit } = useForm()
const onSubmit = (data) => {
// localStorage.setItem('searchCriteria',"")
data.status = selectedStatus?.type
let typeArray = [];
let sentDateFrom = "";
@@ -88,6 +89,8 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss
issueId: issueSelected?.id,
groupNo: data.groupNo,
gazettGroup: groupSelected?.code,
start:0,
limit:10
};
applySearch(temp);
// setSearchReady(true)


+ 2
- 0
src/pages/PublicNotice/Search_Mark_As_Paid_GLD/SearchForm.js 查看文件

@@ -86,6 +86,8 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss
orgId: (orgSelected?.key && orgSelected?.key > 0) ? orgSelected?.key : "",
issueId: issueSelected?.id,
groupNo: data.groupNo,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/User/SearchPage/UserSearchForm.js 查看文件

@@ -42,6 +42,8 @@ const UserSearchForm = ({ applySearch, onGridReady, searchCriteria }) => {
post: data.post,
email: data.email,
locked: locked,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/User/SearchPage_Organization/UserSearchForm_Organization.js 查看文件

@@ -52,6 +52,8 @@ const UserSearchForm_Organization = ({applySearch, orgComboData, onGridReady, se
brNoStr: data.brNoStr,
orgName: orgSelected?.name ? orgSelected?.name : "",
accountFilter: accountFilter=="All"?null:accountFilter,
start:0,
limit:10
};
applySearch(temp);
};


Loading…
取消
儲存