From 63b3704e89bd359e00b3aa95f96786246940f6c8 Mon Sep 17 00:00:00 2001 From: bcjang Date: Mon, 15 Sep 2025 16:24:41 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9E=88=EC=8A=A4=ED=86=A0=EB=A6=AC=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EA=B4=80=EB=A0=A8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/History.js | 2 +- src/assets/data/apis/historyAPI.json | 2 +- src/assets/data/pages/historySearch.json | 9 +- src/pages/DataManage/CryptView.js | 111 ----------------------- src/pages/UserManage/LogView.js | 3 +- 5 files changed, 10 insertions(+), 117 deletions(-) delete mode 100644 src/pages/DataManage/CryptView.js diff --git a/src/apis/History.js b/src/apis/History.js index 57fe75e..4576e19 100644 --- a/src/apis/History.js +++ b/src/apis/History.js @@ -12,7 +12,7 @@ export const LogViewList = async (token, searchType, searchKey, historyType, sta }, ); - return res.data.data; + return res.data; } catch (e) { if (e instanceof Error) { throw new Error('LogViewList Error', e); diff --git a/src/assets/data/apis/historyAPI.json b/src/assets/data/apis/historyAPI.json index 26ec9d0..7075756 100644 --- a/src/assets/data/apis/historyAPI.json +++ b/src/assets/data/apis/historyAPI.json @@ -4,7 +4,7 @@ "LogViewList": { "method": "GET", "url": "/list", - "dataPath": "data.data", + "dataPath": "data", "paramFormat": "query" }, "LogviewDetail": { diff --git a/src/assets/data/pages/historySearch.json b/src/assets/data/pages/historySearch.json index 5299715..4092850 100644 --- a/src/assets/data/pages/historySearch.json +++ b/src/assets/data/pages/historySearch.json @@ -3,8 +3,8 @@ "searchType": "ID", "searchData": "", "historyType": "", - "startDate": "", - "endDate": "", + "startDate": "today", + "endDate": "today", "orderBy": "DESC", "pageSize": 50, "currentPage": 1 @@ -37,7 +37,10 @@ "startDateId": "startDate", "endDateId": "endDate", "label": "기간", - "col": 2 + "col": 2, + "width": "500px", + "format": "YYYY-MM-DD HH:mm:ss", + "showTime": true } ], diff --git a/src/pages/DataManage/CryptView.js b/src/pages/DataManage/CryptView.js deleted file mode 100644 index 6c2b2a7..0000000 --- a/src/pages/DataManage/CryptView.js +++ /dev/null @@ -1,111 +0,0 @@ -import { styled } from 'styled-components'; -import { Fragment, useState } from 'react'; - -import { Title, TableStyle, ButtonClose, ModalText, BtnWrapper } from '../../styles/Components'; - -import UserSearchBar from '../../components/searchBar/UserSearchBar'; -import Modal from '../../components/common/modal/Modal'; -import Button from '../../components/common/button/Button'; - -import { useNavigate } from 'react-router-dom'; -import { authList } from '../../store/authList'; -import { useRecoilValue } from 'recoil'; - -const CryptView = () => { - const navigate = useNavigate(); - const userInfo = useRecoilValue(authList); - const mokupData = [ - { - getDate: '2023-08-06 18:50:03', - getLocation: '유저 거래', - itemName: '빛나는 가죽 장갑', - serialNo: 'Serial_number', - itemCode: 'Item_code', - tradeKey: 'User_trade_key', - }, - ]; - - return ( - <> - {userInfo.auth_list && !userInfo.auth_list.some(auth => auth.id === 15) ? ( - - - navigate(-1)} /> - - - 해당 메뉴에 대한 조회 권한이 없습니다. -
- 권한 등급을 변경 후 다시 이용해주세요. -
- -