"use client" import { useState } from "react" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" import { Avatar, AvatarFallback } from "@/components/ui/avatar" import { Progress } from "@/components/ui/progress" import { TrendingUp, TrendingDown, Download, BarChart3, PieChartIcon, Activity, Users, Target, Award, Calendar, FileText, } from "lucide-react" // Mock data for reports const performanceData = [ { month: "1月", 營收成長率: 75, 團隊滿意度: 88, 市場佔有率: 72, 創新指數: 40 }, { month: "2月", 營收成長率: 85, 團隊滿意度: 92, 市場佔有率: 68, 創新指數: 45 }, { month: "3月", 營收成長率: 82, 團隊滿意度: 89, 市場佔有率: 70, 創新指數: 48 }, { month: "4月", 營收成長率: 88, 團隊滿意度: 94, 市場佔有率: 73, 創新指數: 52 }, { month: "5月", 營收成長率: 91, 團隊滿意度: 96, 市場佔有率: 75, 創新指數: 55 }, { month: "6月", 營收成長率: 89, 團隊滿意度: 93, 市場佔有率: 77, 創新指數: 58 }, ] const departmentData = [ { name: "業務部", performance: 95, color: "#10b981" }, { name: "行銷部", performance: 88, color: "#3b82f6" }, { name: "產品部", performance: 82, color: "#8b5cf6" }, { name: "營運部", performance: 76, color: "#f59e0b" }, { name: "人資部", performance: 71, color: "#ef4444" }, ] const kpiDistribution = [ { name: "財務", value: 35, color: "#10b981" }, { name: "團隊", value: 25, color: "#3b82f6" }, { name: "營運", value: 25, color: "#8b5cf6" }, { name: "創新", value: 15, color: "#f59e0b" }, ] const radarData = [ { subject: "領導力", A: 120, B: 110, fullMark: 150 }, { subject: "溝通", A: 98, B: 130, fullMark: 150 }, { subject: "創新", A: 86, B: 130, fullMark: 150 }, { subject: "執行力", A: 99, B: 100, fullMark: 150 }, { subject: "團隊合作", A: 85, B: 90, fullMark: 150 }, { subject: "策略思維", A: 65, B: 85, fullMark: 150 }, ] const executiveReports = [ { id: 1, name: "陳雅雯", position: "業務副總", department: "業務部", overallScore: 92, kpiCompletion: 85, reviewsCompleted: 4, totalReviews: 4, lastReview: "2024-02-10", trend: "up", color: "emerald", strengths: ["業務拓展", "團隊領導", "客戶關係"], improvements: ["數據分析", "創新思維"], }, { id: 2, name: "王志明", position: "技術長", department: "產品部", overallScore: 88, kpiCompletion: 92, reviewsCompleted: 3, totalReviews: 4, lastReview: "2024-02-08", trend: "up", color: "blue", strengths: ["技術創新", "問題解決", "團隊協作"], improvements: ["業務理解", "溝通技巧"], }, { id: 3, name: "李美玲", position: "行銷總監", department: "行銷部", overallScore: 85, kpiCompletion: 78, reviewsCompleted: 4, totalReviews: 4, lastReview: "2024-02-05", trend: "down", color: "purple", strengths: ["創意行銷", "品牌管理", "市場分析"], improvements: ["數據驅動", "ROI 優化"], }, { id: 4, name: "張建國", position: "營運長", department: "營運部", overallScore: 79, kpiCompletion: 72, reviewsCompleted: 2, totalReviews: 4, lastReview: "2024-01-28", trend: "down", color: "orange", strengths: ["流程優化", "成本控制", "風險管理"], improvements: ["創新思維", "團隊激勵"], }, ] export default function ReportsPage() { const [selectedPeriod, setSelectedPeriod] = useState("6months") const [selectedDepartment, setSelectedDepartment] = useState("all") const [activeTab, setActiveTab] = useState("overview") return (
{/* Header */}
公司 Logo

績效報告中心

執行管理績效分析與報告

{/* Summary Cards */}

整體達成率

87%

+5.2%

參與人數

24

+2

優秀表現

8

+1

評審完成

18

+3
{/* Main Content */} 績效分析報告 詳細的績效數據分析與趨勢追蹤 概覽 績效趨勢 部門分析 執行層報告
{/* KPI 分布 */} KPI 類別分布
{kpiDistribution.map((item, index) => (
{item.name} {item.value}%
))}
{/* 部門績效 */} 部門績效排名
{departmentData.map((dept, index) => (
{index + 1}
{dept.name}
{dept.performance}%
))}
績效趨勢分析
{performanceData.map((data, index) => (

{data.month}

營收成長率 {data.營收成長率}%
團隊滿意度 {data.團隊滿意度}%
市場佔有率 {data.市場佔有率}%
創新指數 {data.創新指數}%
))}
{departmentData.map((dept, index) => ( {dept.name}
績效分數 {dept.performance}%
參與人數: 6
完成評審: 5
))}
{executiveReports.map((exec) => (
{exec.name} {exec.position} • {exec.department}
{exec.overallScore}分

KPI 達成率

{exec.kpiCompletion}%

評審進度

{exec.reviewsCompleted}/{exec.totalReviews}

優勢領域

{exec.strengths.map((strength, index) => ( {strength} ))}

改進方向

{exec.improvements.map((improvement, index) => ( {improvement} ))}
))}
) }