import { Grid, Typography, Stack, // Box, } from '@mui/material'; import * as React from "react"; import { GET_SYS_PARAMS } from "utils/ApiPathConst"; import Loadable from 'components/Loadable'; import MainCard from "components/MainCard"; const Table = Loadable(React.lazy(() => import('./Table'))); const Form = Loadable(React.lazy(() => import('./Form'))); import { notifyActionSuccess } from 'utils/CommonFunction'; import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png' import * as HttpUtils from "utils/HttpUtils"; const BackgroundHead = { backgroundImage: `url(${titleBackgroundImg})`, width: '100%', height: '100%', backgroundSize: 'contain', backgroundRepeat: 'no-repeat', backgroundColor: '#0C489E', backgroundPosition: 'right' } // ==============================|| DASHBOARD - DEFAULT ||============================== // const SystemSetting = () => { const [searchCriteria, setSearchCriteria] = React.useState({}); const [selectedItem, setSelectedItem] = React.useState({}); const [reloadTime, setReloadTime] = React.useState(new Date()) React.useEffect(()=>{ setSearchCriteria({}) }, []); const onRowClick = (param) => { setSelectedItem(param.row); } React.useEffect(() => { searchCriteria.reloadTime = reloadTime; setSearchCriteria(searchCriteria); }, [reloadTime]); const onSave = (param) => { HttpUtils.post({ url: GET_SYS_PARAMS + "/update", params: { name: param.name, value: param.value }, onSuccess: () => { notifyActionSuccess(); setReloadTime(new Date()); } }); } return ( <>
System Setting
{/*col 1*/}
{/*col 2*/} ); }; export default SystemSetting;