实现8个农业产业的供应链可视化大屏,提供直观的数据展示和供应链网络可视化,集成到现有项目的home页面中,为农业企业决策者提供全面的产业数据洞察。
更新说明:基于最新的Figma设计文档分析,产业数量从4个扩展到8个(粮食、油脂、种业、果蔬、畜牧、水产、鲜食、泛盐)。
src/client/home/pages/SupplyChainDashboards/目录下创建新的页面组件,使用现有Tailwind CSS样式系统Story 005.001: 粮食大屏实现
Story 005.002: 油脂大屏实现
Story 005.003: 种业大屏实现
Story 005.004: 果蔬大屏实现
Story 005.005: 畜牧大屏实现
Story 005.006: 水产大屏实现
Story 005.007: 鲜食大屏实现
Story 005.008: 泛盐大屏实现
Story 005.009: 大屏导航和切换功能
Story 005.010: 数据集成和API对接
src/client/home/pages/SupplyChainDashboards/GrainDashboard.tsx - 粮食大屏OilDashboard.tsx - 油脂大屏SeedDashboard.tsx - 种业大屏FruitVegetableDashboard.tsx - 果蔬大屏LivestockDashboard.tsx - 畜牧大屏AquacultureDashboard.tsx - 水产大屏FreshFoodDashboard.tsx - 鲜食大屏SaltDashboard.tsx - 泛盐大屏src/client/home/pages/SupplyChainDashboards/components/目录结构:
components/
├── icons/
│ ├── IndustryIcon.tsx # 统一产业图标组件
│ └── index.ts
├── layout/
│ ├── SupplyChainBackground.tsx # 背景组件
│ ├── BackgroundGrid.tsx # 网格背景
│ ├── HeaderBar.tsx # 标题栏
│ ├── Navigation.tsx # 导航组件
│ └── index.ts
├── text/
│ ├── SupplyChainText.tsx # 统一文本组件
│ └── index.ts
├── map/
│ ├── SupplyChainNetwork.tsx # 供应链网络
│ ├── IndustryChainPoint.tsx # 产业链定位点
│ ├── BasePoint.tsx # 基地定位点
│ ├── MapBorder.tsx # 地图边框
│ └── index.ts
├── data/
│ ├── DataCard.tsx # 数据卡片
│ ├── PopupInfoBox.tsx # 弹出信息框
│ ├── KeyMetricsPanel.tsx # 关键指标面板
│ └── index.ts
└── index.ts
IndustryIcon - 产业图标组件,支持8个产业类型配置property1?: "粮食" | "油脂" | "种业" | "果蔬" | "畜牧" | "水产" | "鲜食" | "泛盐"SupplyChainText - 统一文本组件propValue?: "24px" | "26px" | "34px" - 字号propValue1?: "特粗" - 字重propValue2?: "左对齐" | "右对齐" | "居中对齐" - 对齐方式VerticalNavigation - 左侧垂直导航栏property1?: "上" | "下" - 导航位置状态activeTab - 当前激活的产业onTabChange - 切换回调SupplyChainNetwork - 供应链连接线网络IndustryChainPoint - 产业链定位点(带蓝色光晕)BasePoint - 基地定位点(带产业图标)MapBorder - 地图边框组件DataCard - 数据卡片(带渐变背景的数字展示)PopupInfoBox - 弹出信息框(带箭头指示器)KeyMetricsPanel - 关键指标面板HeaderBar - 顶部标题栏背景BackgroundGrid - 底部网格背景SupplyChainBackground - 供应链专用界面背景public/supply-chain/ 目录下wget 直接从Figma提供的图片URL下载file 命令验证文件是PNG还是SVG格式/supply-chain/{图片文件名} 引用基于Figma设计文档分析,需要实现以下核心组件体系:
IndustryIcon - 支持8个产业类型的可配置图标SupplyChainText - 支持多种字号、字重、对齐方式的统一文本VerticalNavigation - 左侧垂直导航栏,支持位置状态切换SupplyChainNetwork - 供应链连接线网络(包含17条连接线)IndustryChainPoint - 产业链定位点(蓝色光晕效果)BasePoint - 基地定位点(产业图标展示)MapBorder - 地图边框装饰DataCard - 带渐变背景的数字展示卡片PopupInfoBox - 带箭头指示器的信息展示框KeyMetricsPanel - 关键指标展示区域SupplyChainBackground - 供应链专用界面背景BackgroundGrid - 底部网格背景装饰HeaderBar - 顶部标题栏背景