From df72d241fb159458bde70fb533ff2d0e9430240f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Fri, 6 Mar 2026 19:42:21 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20[rd]=20=EC=A1=B0=EC=A7=81=EB=8F=84=20?= =?UTF-8?q?=ED=81=B4=EB=9E=98=EC=8B=9D=20=ED=95=98=ED=96=A5=EC=8B=9D=20?= =?UTF-8?q?=ED=8A=B8=EB=A6=AC=20=ED=98=95=ED=83=9C=EB=A1=9C=20=EA=B0=9C?= =?UTF-8?q?=ED=8E=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 회사(대표이사) → 1단계 부서 → 2단계 → 3단계 하향식 트리 구조 - 부서 간 수직/수평 연결선으로 계층 시각화 - 미배치 직원 패널을 상단 접이식으로 변경 - 부서 카드 클릭 시 하위 부서 펼침/접기 - drag & drop 배치 기능 유지 --- app/Http/Controllers/RdController.php | 8 +- resources/views/rd/org-chart.blade.php | 369 ++++++++++++++----------- 2 files changed, 222 insertions(+), 155 deletions(-) diff --git a/app/Http/Controllers/RdController.php b/app/Http/Controllers/RdController.php index 2d54743b..2b9786f9 100644 --- a/app/Http/Controllers/RdController.php +++ b/app/Http/Controllers/RdController.php @@ -5,6 +5,7 @@ use App\Models\HR\Employee; use App\Models\Rd\AiQuotation; use App\Models\Tenants\Department; +use App\Models\Tenants\Tenant; use App\Services\Rd\AiQuotationService; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; @@ -68,7 +69,12 @@ public function orgChart(Request $request): View|\Illuminate\Http\Response ]; })->values(); - return view('rd.org-chart', compact('departments', 'employees')); + // 회사 정보 (조직도 최상단) + $tenant = Tenant::find($tenantId); + $companyName = $tenant->company_name ?? 'SAM'; + $ceoName = $tenant->ceo_name ?? ''; + + return view('rd.org-chart', compact('departments', 'employees', 'companyName', 'ceoName')); } /** diff --git a/resources/views/rd/org-chart.blade.php b/resources/views/rd/org-chart.blade.php index 4eed6c8f..ee7254f0 100644 --- a/resources/views/rd/org-chart.blade.php +++ b/resources/views/rd/org-chart.blade.php @@ -24,166 +24,217 @@ 직원 카드를 드래그하여 부서에 배치하거나, 미배치 영역으로 이동할 수 있습니다. 변경은 즉시 저장됩니다. -
- -
-
-
-

- - 미배치 직원 - -

-
- -
+ +
+
+
+ + + 미배치 직원 + +
+ class="px-3 py-1 border border-gray-200 rounded text-xs focus:outline-none focus:ring-1 focus:ring-purple-400" + style="width: 160px;">
- -
+
+
+
-
+
미배치 직원 없음
+
- -
- -