|
|
@@ -5,9 +5,7 @@ import { |
|
|
|
Stack |
|
|
|
} from '@mui/material'; |
|
|
|
import MainCard from "components/MainCard"; |
|
|
|
import * as UrlUtils from "utils/ApiPathConst"; |
|
|
|
import * as React from "react"; |
|
|
|
import * as HttpUtils from "utils/HttpUtils"; |
|
|
|
import * as DateUtils from "utils/DateUtils"; |
|
|
|
|
|
|
|
import Loadable from 'components/Loadable'; |
|
|
@@ -30,35 +28,16 @@ const BackgroundHead = { |
|
|
|
|
|
|
|
const UserSearchPage_Individual = () => { |
|
|
|
|
|
|
|
const [record, setRecord] = React.useState([]); |
|
|
|
const [searchCriteria, setSearchCriteria] = React.useState({ |
|
|
|
dateTo: DateUtils.dateValue(new Date()), |
|
|
|
dateFrom: DateUtils.dateValue(new Date().setDate(new Date().getDate() - 90)), |
|
|
|
}); |
|
|
|
const [onReady, setOnReady] = React.useState(false); |
|
|
|
|
|
|
|
React.useEffect(() => { |
|
|
|
getDataList(); |
|
|
|
}, []); |
|
|
|
|
|
|
|
React.useEffect(() => { |
|
|
|
setOnReady(true); |
|
|
|
}, [record]); |
|
|
|
|
|
|
|
React.useEffect(() => { |
|
|
|
getDataList(); |
|
|
|
}, [searchCriteria]); |
|
|
|
|
|
|
|
function getDataList() { |
|
|
|
HttpUtils.get({ |
|
|
|
url: UrlUtils.GET_ANNOUNCE_LIST, |
|
|
|
params: searchCriteria, |
|
|
|
onSuccess: function (responseData) { |
|
|
|
setRecord(responseData); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
function applySearch(input) { |
|
|
|
setSearchCriteria(input); |
|
|
|
} |
|
|
@@ -94,7 +73,7 @@ const UserSearchPage_Individual = () => { |
|
|
|
sx={{ backgroundColor: '#fff' }} |
|
|
|
> |
|
|
|
<EventTable |
|
|
|
recordList={record} |
|
|
|
searchCriteria={searchCriteria} |
|
|
|
/> |
|
|
|
</MainCard> |
|
|
|
</Grid> |
|
|
|