|
|
@ -7,8 +7,6 @@ import getYear from 'date-fns/getYear';
|
|
|
|
import { GridActionsCellItem } from '@mui/x-data-grid';
|
|
|
|
import { GridActionsCellItem } from '@mui/x-data-grid';
|
|
|
|
import { Divider, FormControl, Grid, InputAdornment, Link, MenuItem, OutlinedInput, Select } from '@mui/material';
|
|
|
|
import { Divider, FormControl, Grid, InputAdornment, Link, MenuItem, OutlinedInput, Select } from '@mui/material';
|
|
|
|
import DeleteIcon from '@mui/icons-material/Delete';
|
|
|
|
import DeleteIcon from '@mui/icons-material/Delete';
|
|
|
|
|
|
|
|
|
|
|
|
// assets
|
|
|
|
|
|
|
|
import { IconSearch } from '@tabler/icons';
|
|
|
|
import { IconSearch } from '@tabler/icons';
|
|
|
|
|
|
|
|
|
|
|
|
// berry ui
|
|
|
|
// berry ui
|
|
|
@ -17,8 +15,8 @@ import MainCard from 'ui-component/cards/MainCard';
|
|
|
|
// project imports
|
|
|
|
// project imports
|
|
|
|
import MuiDataGrid from 'views/form/MuiDataGrid';
|
|
|
|
import MuiDataGrid from 'views/form/MuiDataGrid';
|
|
|
|
import xitCmm from 'commons/XitCmm';
|
|
|
|
import xitCmm from 'commons/XitCmm';
|
|
|
|
import { findParkings } from 'apis/parking';
|
|
|
|
import InputLabel from 'ui-component/extended/Form/InputLabel';
|
|
|
|
import InputLabel from '../../../ui-component/extended/Form/InputLabel';
|
|
|
|
import { findResidents } from 'apis/resident';
|
|
|
|
|
|
|
|
|
|
|
|
const ResidentReview = () => {
|
|
|
|
const ResidentReview = () => {
|
|
|
|
const isInit = useRef(true);
|
|
|
|
const isInit = useRef(true);
|
|
|
@ -117,7 +115,7 @@ const ResidentReview = () => {
|
|
|
|
size: rowsState.pageSize
|
|
|
|
size: rowsState.pageSize
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
findParkings({ ...params, msYear: selectedYear, msChasu: searchTxt }).then((response) => {
|
|
|
|
findResidents({ ...params, msYear: selectedYear, msChasu: searchTxt }).then((response) => {
|
|
|
|
if (response && response.data) {
|
|
|
|
if (response && response.data) {
|
|
|
|
setTotalCount(response.count);
|
|
|
|
setTotalCount(response.count);
|
|
|
|
setRowsState((prevState) => ({ ...prevState, rows: response.data }));
|
|
|
|
setRowsState((prevState) => ({ ...prevState, rows: response.data }));
|
|
|
|