| @@ -13,8 +13,7 @@ import MainCard from "components/MainCard"; | |||||
| import { useEffect, useState, lazy } from "react"; | import { useEffect, useState, lazy } from "react"; | ||||
| import axios from "axios"; | import axios from "axios"; | ||||
| import { useNavigate, useParams } from "react-router-dom"; | import { useNavigate, useParams } from "react-router-dom"; | ||||
| import { GLD_USER_PATH, DELETE_USER, POST_ADMIN_USER_REGISTER, GET_LOGIN_LOG_LIST } from "utils/ApiPathConst"; | |||||
| import * as HttpUtils from "utils/HttpUtils"; | |||||
| import { GLD_USER_PATH, DELETE_USER, POST_ADMIN_USER_REGISTER } from "utils/ApiPathConst"; | |||||
| import {isGrantedAny} from "auth/utils"; | import {isGrantedAny} from "auth/utils"; | ||||
| import Loadable from 'components/Loadable'; | import Loadable from 'components/Loadable'; | ||||
| const UserInformationCard = Loadable(lazy(() => import('./UserInformationCard'))); | const UserInformationCard = Loadable(lazy(() => import('./UserInformationCard'))); | ||||
| @@ -33,6 +32,7 @@ import { | |||||
| } from "utils/CommonFunction"; | } from "utils/CommonFunction"; | ||||
| import ForwardIcon from '@mui/icons-material/Forward'; | import ForwardIcon from '@mui/icons-material/Forward'; | ||||
| import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png' | import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png' | ||||
| import { useIntl } from 'react-intl'; | |||||
| const BackgroundHead = { | const BackgroundHead = { | ||||
| backgroundImage: `url(${titleBackgroundImg})`, | backgroundImage: `url(${titleBackgroundImg})`, | ||||
| @@ -47,6 +47,7 @@ const BackgroundHead = { | |||||
| const UserMaintainPage = () => { | const UserMaintainPage = () => { | ||||
| const intl = useIntl(); | |||||
| const params = useParams(); | const params = useParams(); | ||||
| const navigate = useNavigate(); | const navigate = useNavigate(); | ||||
| const [userData, setUserData] = useState({}); | const [userData, setUserData] = useState({}); | ||||
| @@ -143,7 +144,6 @@ const UserMaintainPage = () => { | |||||
| if (response.status === 200) { | if (response.status === 200) { | ||||
| setRefUserData(response.data); | setRefUserData(response.data); | ||||
| setUserData(response.data); | setUserData(response.data); | ||||
| getLoginLogList() | |||||
| } | } | ||||
| }) | }) | ||||
| .catch(error => { | .catch(error => { | ||||
| @@ -226,19 +226,6 @@ const UserMaintainPage = () => { | |||||
| setUserConfirm(false); | setUserConfirm(false); | ||||
| }, [editedCustomerData, userGroupData, userAuthData]); | }, [editedCustomerData, userGroupData, userAuthData]); | ||||
| const getLoginLogList = () => { | |||||
| HttpUtils.get({ | |||||
| url: `${GET_LOGIN_LOG_LIST}`, | |||||
| params: { | |||||
| u1: params.id | |||||
| }, | |||||
| onSuccess: function (response) { | |||||
| // console.log(response) | |||||
| setLoginLogData(response); | |||||
| } | |||||
| }); | |||||
| } | |||||
| const onEditClick = () => { | const onEditClick = () => { | ||||
| setEditMode(true); | setEditMode(true); | ||||
| }; | }; | ||||