|
|
@@ -12,7 +12,7 @@ import { getSearchCriteria, checkSearchCriteriaPath } from "auth/utils"; |
|
|
|
|
|
|
|
export function FiDataGrid({ rows, columns, sx, autoHeight, |
|
|
|
hideFooterSelectedRowCount, rowModesModel, editMode, |
|
|
|
pageSizeOptions, filterItems, customPageSize, doLoad, applyGridOnReady, applySearch, ...props }) { |
|
|
|
pageSizeOptions, filterItems, customPageSize, doLoad, applyGridOnReady, applySearch, tab, ...props }) { |
|
|
|
const intl = useIntl(); |
|
|
|
const [_rows, set_rows] = useState([]); |
|
|
|
const [_doLoad, set_doLoad] = useState({}); |
|
|
@@ -148,7 +148,13 @@ export function FiDataGrid({ rows, columns, sx, autoHeight, |
|
|
|
_doLoad.params.start = page * pageSize; |
|
|
|
_doLoad.params.limit = pageSize; |
|
|
|
if(checkSearchCriteriaPath(window.location.pathname)){ |
|
|
|
localStorage.setItem('searchCriteria', JSON.stringify({path:window.location.pathname,data:_doLoad.params})) |
|
|
|
if(window.location.pathname === "/publicNotice"){ |
|
|
|
if (tab != undefined && tab ==="application"){ |
|
|
|
localStorage.setItem('searchCriteria', JSON.stringify({path:window.location.pathname,data:_doLoad.params})) |
|
|
|
} |
|
|
|
}else if (window.location.pathname != "/publicNotice"){ |
|
|
|
localStorage.setItem('searchCriteria', JSON.stringify({path:window.location.pathname,data:_doLoad.params})) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
HttpUtils.get({ |
|
|
|