phase 2.3 테이블 및 컬럼 동적생성기능 변경

This commit is contained in:
kjs
2025-09-30 18:28:54 +09:00
parent c8c05f1c0d
commit 3c06d35374
5 changed files with 164 additions and 155 deletions

View File

@@ -76,8 +76,8 @@ export default function TableManagementPage() {
const [addColumnModalOpen, setAddColumnModalOpen] = useState(false);
const [ddlLogViewerOpen, setDdlLogViewerOpen] = useState(false);
// 최고 관리자 여부 확인
const isSuperAdmin = user?.companyCode === "*" && user?.userId === "plm_admin";
// 최고 관리자 여부 확인 (회사코드가 "*"인 경우)
const isSuperAdmin = user?.companyCode === "*";
// 다국어 텍스트 로드
useEffect(() => {
@@ -541,9 +541,9 @@ export default function TableManagementPage() {
}, [selectedTable, columns.length, totalColumns, columnsLoading, pageSize, loadColumnTypes]);
return (
<div className="w-full max-w-none px-4 py-8 space-y-8">
<div className="w-full max-w-none space-y-8 px-4 py-8">
{/* 페이지 제목 */}
<div className="flex items-center justify-between bg-white rounded-lg shadow-sm border p-6">
<div className="flex items-center justify-between rounded-lg border bg-white p-6 shadow-sm">
<div>
<h1 className="text-3xl font-bold text-gray-900">
{getTextFromUI(TABLE_MANAGEMENT_KEYS.PAGE_TITLE, "테이블 타입 관리")}
@@ -593,7 +593,7 @@ export default function TableManagementPage() {
<div className="grid grid-cols-1 gap-6 lg:grid-cols-5">
{/* 테이블 목록 */}
<Card className="lg:col-span-1 shadow-sm">
<Card className="shadow-sm lg:col-span-1">
<CardHeader className="bg-gray-50/50">
<CardTitle className="flex items-center gap-2">
<Database className="h-5 w-5 text-gray-600" />
@@ -663,7 +663,7 @@ export default function TableManagementPage() {
</Card>
{/* 컬럼 타입 관리 */}
<Card className="lg:col-span-4 shadow-sm">
<Card className="shadow-sm lg:col-span-4">
<CardHeader className="bg-gray-50/50">
<CardTitle className="flex items-center gap-2">
<Settings className="h-5 w-5 text-gray-600" />