diff --git a/src/assets/data/fields.ts b/src/assets/data/fields.ts index 03242e8..da11b03 100644 --- a/src/assets/data/fields.ts +++ b/src/assets/data/fields.ts @@ -70,3 +70,4 @@ export const ORDER_IDX = 'orderIdx'; export const ITEM_MAX_POINTS = 'itemMaxPoints'; export const ISCHECKED = 'isChecked'; export const CATEGORYID = 'categoryId'; +export const MOD_DATE = 'modDate'; diff --git a/src/pages/mileage/category/index.tsx b/src/pages/mileage/category/index.tsx index 673ba11..8ff80d4 100644 --- a/src/pages/mileage/category/index.tsx +++ b/src/pages/mileage/category/index.tsx @@ -8,6 +8,7 @@ import { ID, ORDER_IDX, TITLE, + MOD_DATE, } from 'src/assets/data/fields'; import SWModal from 'src/components/common/modal/SWModal'; import { EDITCATEGORY } from 'src/assets/data/modal/modals'; @@ -26,6 +27,7 @@ export enum MileageCategoryBoard { 'ORDER_IDX' = ORDER_IDX, 'DESCRIPTION1' = DESCRIPTION1, 'DESCRIPTION2' = DESCRIPTION2, + 'MOD_DATE' = MOD_DATE, 'MANAGE' = MANAGE, } @@ -40,6 +42,7 @@ interface Data { [MileageCategoryBoard.ORDER_IDX]: number; [MileageCategoryBoard.DESCRIPTION1]: string; [MileageCategoryBoard.DESCRIPTION2]: string; + [MileageCategoryBoard.MOD_DATE]: string; [MileageCategoryBoard.MANAGE]: ReactNode; } @@ -55,6 +58,7 @@ function createData( ORDER_IDX: number, DESCRIPTION1: string, DESCRIPTION2: string, + MOD_DATE: string, MANAGE: ReactNode ): Data { return { @@ -63,6 +67,7 @@ function createData( [MileageCategoryBoard.ORDER_IDX]: ORDER_IDX, [MileageCategoryBoard.DESCRIPTION1]: DESCRIPTION1, [MileageCategoryBoard.DESCRIPTION2]: DESCRIPTION2, + [MileageCategoryBoard.MOD_DATE]: MOD_DATE, [MileageCategoryBoard.MANAGE]: MANAGE, }; } @@ -104,6 +109,12 @@ const headCells = [ disablePadding: false, label: '설명2', }, + { + id: [MileageCategoryBoard.MOD_DATE], + numeric: true, + disablePadding: false, + label: '최근 수정일', + }, { id: [MileageCategoryBoard.MANAGE], numeric: true, @@ -182,6 +193,7 @@ export default function MileageCategory({ item[ORDER_IDX], item[DESCRIPTION1], item[DESCRIPTION2], + item[MOD_DATE], ); });