document filter and sort by name

This commit is contained in:
2022-05-09 11:09:54 +01:00
parent 05c6844cc1
commit 8c99516213
7 changed files with 234 additions and 25 deletions
+17 -2
View File
@@ -418,13 +418,26 @@ export const getSearchDocumentDetails = (incidentID) => {
});
};
export const getSearchDocumentTypes = (incidentID) => {
return axios
.get(
"/api/endpoint/getsearchdocumentTypes_api?incidentid=" + incidentID
)
.then((res) => res.data)
.catch((error) => {
console.log("API call error", error);
});
};
export const getSearchDocumentDetailsPaged = (
incidentID,
pageNumber,
orderBy,
fieldSort,
showNumberOfRecords
showNumberOfRecords,
documentType
) => {
console.log("to api:", documentType);
return axios
.get(
"/api/endpoint/getsearchdocumentdetailspaged_api?incidentid=" +
@@ -436,7 +449,9 @@ export const getSearchDocumentDetailsPaged = (
"&fieldSort=" +
fieldSort +
"&showNumberOfRecords=" +
showNumberOfRecords
showNumberOfRecords +
"&documentType=" +
documentType
)
.then((res) => res.data)
.catch((error) => {