From c3338d873639da0d9d080a885e2d8adbfe297360 Mon Sep 17 00:00:00 2001 From: minuk926 Date: Tue, 31 May 2022 18:31:51 +0900 Subject: [PATCH] fix: dashboard fix --- src/views/dashboard/index.js | 167 ++++++++++++++++++++++++++++------- 1 file changed, 137 insertions(+), 30 deletions(-) diff --git a/src/views/dashboard/index.js b/src/views/dashboard/index.js index e20a372..b825ac3 100644 --- a/src/views/dashboard/index.js +++ b/src/views/dashboard/index.js @@ -1,17 +1,21 @@ import { useEffect, useState, useCallback } from 'react'; // material-ui -import { Grid, Link, Typography } from '@mui/material'; +import { Card, CardContent, Grid, Link, Typography } from '@mui/material'; +import PlaylistAddCheckIcon from '@mui/icons-material/PlaylistAddCheck'; // project imports import { gridSpacing } from 'store/constant'; import { findDashboard } from 'apis/judge'; import MuiDataGrid from 'views/cmm/mui-grid/MuiDataGrid'; import { IconFileText } from '@tabler/icons'; +import { useTheme } from '@mui/material/styles'; +import Box from '@mui/material/Box'; // ==============================|| DEFAULT DASHBOARD ||============================== // const Dashboard = () => { + const theme = useTheme(); const [totalCount, setTotalCount] = useState(0); const [rowsState, setRowsState] = useState({ page: 0, @@ -105,14 +109,14 @@ const Dashboard = () => { headerAlign: 'center', field: 'name', align: 'center', - width: 100 + width: 95 }, { headerName: '완료 / 전체', headerAlign: 'center', field: 'judge', align: 'center', - width: 100, + width: 95, valueGetter: (params) => `${params.row.jcnt} / ${params.row.tcnt}` } ]; @@ -155,40 +159,143 @@ const Dashboard = () => { return ( - 공지사항 - + + + + + + 공지사항 + + + + + - + - 주정차심사자현황 (심사종료일 : {msEdate1}) - {}} - gridHeight={300} - /> + + + + + + 주정차 심사 현황 (종료일 : {msEdate1}) + + + {}} + gridHeight={300} + /> + + - 거주자심사자현황 (심사종료일 : {msEdate2}) - {}} - gridHeight={300} - /> + + + + + + 거주자 심사 현황 (종료일 : {msEdate2}) + + + {}} + gridHeight={300} + /> + + - 장애인심사자현황 (심사종료일 : {msEdate3}) - {}} - gridHeight={300} - /> + + + + + + {' '} + 장애인 심사 현황 (종료일 : {msEdate3}) + + + {}} + gridHeight={300} + /> + +