From 02b1cf005cf3e1df64183d20ba42930eb2767a9f Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 21 Aug 2025 06:57:36 +0000 Subject: (대표님, 최겸) 설계메뉴추가, 작업사항 업데이트 설계메뉴 - 문서관리 설계메뉴 - 벤더 데이터 gtc 메뉴 업데이트 정보시스템 - 메뉴리스트 및 정보 업데이트 파일 라우트 업데이트 엑셀임포트 개선 기본계약 개선 벤더 가입과정 변경 및 개선 벤더 기본정보 - pq 돌체 오류 수정 및 개선 벤더 로그인 과정 이메일 오류 수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/basic-contract-template-columns.tsx | 314 ++++++++++----------- 1 file changed, 153 insertions(+), 161 deletions(-) (limited to 'lib/basic-contract/template/basic-contract-template-columns.tsx') diff --git a/lib/basic-contract/template/basic-contract-template-columns.tsx b/lib/basic-contract/template/basic-contract-template-columns.tsx index 446112db..a0bef7bf 100644 --- a/lib/basic-contract/template/basic-contract-template-columns.tsx +++ b/lib/basic-contract/template/basic-contract-template-columns.tsx @@ -119,13 +119,7 @@ export function getColumns({ setRowAction, router }: GetColumnsProps): ColumnDef const template = row.original; const handleViewDetails = () => { - // templateName이 "General GTC"인 경우 특별한 라우팅 - if (template.templateName === "GTC") { - router.push(`/evcp/basic-contract-template/gtc`); - } else { - // 일반적인 경우는 기존과 동일 router.push(`/evcp/basic-contract-template/${template.id}`); - } }; return ( @@ -221,12 +215,10 @@ export function getColumns({ setRowAction, router }: GetColumnsProps): ColumnDef const template = row.original; const handleClick = () => { - if (template.templateName === "GTC") { - router.push(`/evcp/basic-contract-template/gtc`); - } else { + // 일반적인 경우는 기존과 동일 router.push(`/evcp/basic-contract-template/${template.id}`); - } + }; return ( @@ -277,152 +269,152 @@ export function getColumns({ setRowAction, router }: GetColumnsProps): ColumnDef ]; // 적용 범위 그룹 - const scopeColumns: ColumnDef[] = [ - { - accessorKey: "shipBuildingApplicable", - header: ({ column }) => , - cell: ({ row }) => { - const applicable = row.getValue("shipBuildingApplicable") as boolean; - return ( -
- {applicable ? ( - - ) : ( - - )} -
- ); - }, - size: 80, - enableResizing: true, - }, - { - accessorKey: "windApplicable", - header: ({ column }) => , - cell: ({ row }) => { - const applicable = row.getValue("windApplicable") as boolean; - return ( -
- {applicable ? ( - - ) : ( - - )} -
- ); - }, - size: 60, - enableResizing: true, - }, - { - accessorKey: "pcApplicable", - header: ({ column }) => , - cell: ({ row }) => { - const applicable = row.getValue("pcApplicable") as boolean; - return ( -
- {applicable ? ( - - ) : ( - - )} -
- ); - }, - size: 50, - enableResizing: true, - }, - { - accessorKey: "nbApplicable", - header: ({ column }) => , - cell: ({ row }) => { - const applicable = row.getValue("nbApplicable") as boolean; - return ( -
- {applicable ? ( - - ) : ( - - )} -
- ); - }, - size: 50, - enableResizing: true, - }, - { - accessorKey: "rcApplicable", - header: ({ column }) => , - cell: ({ row }) => { - const applicable = row.getValue("rcApplicable") as boolean; - return ( -
- {applicable ? ( - - ) : ( - - )} -
- ); - }, - size: 50, - enableResizing: true, - }, - { - accessorKey: "gyApplicable", - header: ({ column }) => , - cell: ({ row }) => { - const applicable = row.getValue("gyApplicable") as boolean; - return ( -
- {applicable ? ( - - ) : ( - - )} -
- ); - }, - size: 50, - enableResizing: true, - }, - { - accessorKey: "sysApplicable", - header: ({ column }) => , - cell: ({ row }) => { - const applicable = row.getValue("sysApplicable") as boolean; - return ( -
- {applicable ? ( - - ) : ( - - )} -
- ); - }, - size: 60, - enableResizing: true, - }, - { - accessorKey: "infraApplicable", - header: ({ column }) => , - cell: ({ row }) => { - const applicable = row.getValue("infraApplicable") as boolean; - return ( -
- {applicable ? ( - - ) : ( - - )} -
- ); - }, - size: 60, - enableResizing: true, - }, - ]; + // const scopeColumns: ColumnDef[] = [ + // { + // accessorKey: "shipBuildingApplicable", + // header: ({ column }) => , + // cell: ({ row }) => { + // const applicable = row.getValue("shipBuildingApplicable") as boolean; + // return ( + //
+ // {applicable ? ( + // + // ) : ( + // + // )} + //
+ // ); + // }, + // size: 80, + // enableResizing: true, + // }, + // { + // accessorKey: "windApplicable", + // header: ({ column }) => , + // cell: ({ row }) => { + // const applicable = row.getValue("windApplicable") as boolean; + // return ( + //
+ // {applicable ? ( + // + // ) : ( + // + // )} + //
+ // ); + // }, + // size: 60, + // enableResizing: true, + // }, + // { + // accessorKey: "pcApplicable", + // header: ({ column }) => , + // cell: ({ row }) => { + // const applicable = row.getValue("pcApplicable") as boolean; + // return ( + //
+ // {applicable ? ( + // + // ) : ( + // + // )} + //
+ // ); + // }, + // size: 50, + // enableResizing: true, + // }, + // { + // accessorKey: "nbApplicable", + // header: ({ column }) => , + // cell: ({ row }) => { + // const applicable = row.getValue("nbApplicable") as boolean; + // return ( + //
+ // {applicable ? ( + // + // ) : ( + // + // )} + //
+ // ); + // }, + // size: 50, + // enableResizing: true, + // }, + // { + // accessorKey: "rcApplicable", + // header: ({ column }) => , + // cell: ({ row }) => { + // const applicable = row.getValue("rcApplicable") as boolean; + // return ( + //
+ // {applicable ? ( + // + // ) : ( + // + // )} + //
+ // ); + // }, + // size: 50, + // enableResizing: true, + // }, + // { + // accessorKey: "gyApplicable", + // header: ({ column }) => , + // cell: ({ row }) => { + // const applicable = row.getValue("gyApplicable") as boolean; + // return ( + //
+ // {applicable ? ( + // + // ) : ( + // + // )} + //
+ // ); + // }, + // size: 50, + // enableResizing: true, + // }, + // { + // accessorKey: "sysApplicable", + // header: ({ column }) => , + // cell: ({ row }) => { + // const applicable = row.getValue("sysApplicable") as boolean; + // return ( + //
+ // {applicable ? ( + // + // ) : ( + // + // )} + //
+ // ); + // }, + // size: 60, + // enableResizing: true, + // }, + // { + // accessorKey: "infraApplicable", + // header: ({ column }) => , + // cell: ({ row }) => { + // const applicable = row.getValue("infraApplicable") as boolean; + // return ( + //
+ // {applicable ? ( + // + // ) : ( + // + // )} + //
+ // ); + // }, + // size: 60, + // enableResizing: true, + // }, + // ]; // 파일 정보 그룹 const fileInfoColumns: ColumnDef[] = [ @@ -495,11 +487,11 @@ export function getColumns({ setRowAction, router }: GetColumnsProps): ColumnDef header: "기본 정보", columns: basicInfoColumns, }, - { - id: "적용 범위", - header: "적용 범위", - columns: scopeColumns, - }, + // { + // id: "적용 범위", + // header: "적용 범위", + // columns: scopeColumns, + // }, { id: "파일 정보", header: "파일 정보", -- cgit v1.2.3