From 3e85fbde628bb556e5f6a93cafd9ba4d53031461 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Fri, 24 Oct 2025 15:18:36 +0900 Subject: (김준회) fix: SWP 초기 개발건 오류 수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/swp/table/swp-table-toolbar.tsx | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) (limited to 'lib/swp/table/swp-table-toolbar.tsx') diff --git a/lib/swp/table/swp-table-toolbar.tsx b/lib/swp/table/swp-table-toolbar.tsx index 656dfd4a..7c5f2f2e 100644 --- a/lib/swp/table/swp-table-toolbar.tsx +++ b/lib/swp/table/swp-table-toolbar.tsx @@ -26,14 +26,12 @@ interface SwpTableToolbarProps { filters: SwpTableFilters; onFiltersChange: (filters: SwpTableFilters) => void; projects?: Array<{ PROJ_NO: string; PROJ_NM: string }>; - mode?: "admin" | "vendor"; // admin: SWP 동기화 가능, vendor: 읽기 전용 } export function SwpTableToolbar({ filters, onFiltersChange, projects = [], - mode = "admin", }: SwpTableToolbarProps) { const [isSyncing, startSync] = useTransition(); const [localFilters, setLocalFilters] = useState(filters); @@ -115,16 +113,14 @@ export function SwpTableToolbar({ {/* 상단 액션 바 */}
- {mode === "admin" && ( - - )} +
- {mode === "vendor" ? "문서 조회 및 업로드" : "SWP 문서 관리 시스템"} + SWP 문서 관리 시스템
@@ -166,10 +162,11 @@ export function SwpTableToolbar({ className="w-full justify-between" > {localFilters.projNo ? ( - + {projects.find((p) => p.PROJ_NO === localFilters.projNo)?.PROJ_NO || localFilters.projNo} - {" - "} + {" ["} {projects.find((p) => p.PROJ_NO === localFilters.projNo)?.PROJ_NM} + {"]"} ) : ( 프로젝트 선택 @@ -225,10 +222,7 @@ export function SwpTableToolbar({ localFilters.projNo === proj.PROJ_NO ? "opacity-100" : "opacity-0" )} /> -
- {proj.PROJ_NO} - {proj.PROJ_NM} -
+ {proj.PROJ_NO} [{proj.PROJ_NM}] ))} {filteredProjects.length === 0 && ( @@ -243,11 +237,13 @@ export function SwpTableToolbar({ ) : ( setLocalFilters({ ...localFilters, projNo: e.target.value }) } + disabled + className="bg-muted" /> )} -- cgit v1.2.3