|
|
|
@ -1,6 +1,9 @@
|
|
|
|
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
|
|
|
|
|
|
|
import _ from 'lodash';
|
|
|
|
|
import format from 'date-fns/format';
|
|
|
|
|
import getYear from 'date-fns/getYear';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// material-ui
|
|
|
|
|
import { GridActionsCellItem } from '@mui/x-data-grid';
|
|
|
|
@ -17,13 +20,16 @@ import MainCard from 'ui-component/cards/MainCard';
|
|
|
|
|
// project imports
|
|
|
|
|
import MuiGridList from 'ui-component/MuiGridList';
|
|
|
|
|
import opstBizService from 'apis/OpstBizService';
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import { useTheme } from '@mui/material/styles';
|
|
|
|
|
import xitCmm from 'commons/XitCmm';
|
|
|
|
|
|
|
|
|
|
const ParkingReview = () => {
|
|
|
|
|
const theme = useTheme();
|
|
|
|
|
const toYear = Number(moment().format('YYYY'));
|
|
|
|
|
const year = getYear(new Date());
|
|
|
|
|
console.log(`year = ${year}`);
|
|
|
|
|
console.log(year instanceof Date);
|
|
|
|
|
const toYear = Number(year);
|
|
|
|
|
console.log(`toYear = ${toYear}`);
|
|
|
|
|
const years = _.range(toYear, toYear - 14, -1);
|
|
|
|
|
|
|
|
|
|
const [selectedYear, setSelectedYear] = useState(toYear);
|
|
|
|
|