Просмотр исходного кода

✨ feat(supply-chain): 完善供应链数据和图标组件

- 为AquacultureIcon组件添加className属性,支持自定义样式
- 移除svg图标中path元素的fill-opacity属性,优化显示效果
- 为粮食、油脂、畜牧、水产、鲜食和泛盐等各产业的38个基地/产业链节点添加imageUrls图片链接数组
- 统一设置图片链接为"/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png"和"/supply-chain/images/省储备粮咸宁库 1.png",丰富数据展示维度
yourname 2 месяцев назад
Родитель
Сommit
914b85c17c

Разница между файлами не показана из-за своего большого размера
+ 0 - 1
src/client/home/pages/SupplyChainDashboards/components/icons/AquacultureIcon.tsx


+ 144 - 0
src/client/home/pages/SupplyChainDashboards/context/SupplyChainContext.tsx

@@ -196,6 +196,10 @@ const grainOilData: SupplyChainData = {
         title: '粮食基地1',
         content: '江汉水稻核心示范基地',
         industry: '粮食',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '种植面积:', value: '8', unit: '万亩' },
           { label: '年产量:', value: '50', unit: '万吨' },
@@ -207,6 +211,10 @@ const grainOilData: SupplyChainData = {
         title: '粮食基地2',
         content: '优质小麦种植基地',
         industry: '粮食',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '种植面积:', value: '6', unit: '万亩' },
           { label: '年产量:', value: '35', unit: '万吨' },
@@ -218,6 +226,10 @@ const grainOilData: SupplyChainData = {
         title: '粮食基地3',
         content: '玉米高产示范区',
         industry: '粮食',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '种植面积:', value: '7', unit: '万亩' },
           { label: '年产量:', value: '45', unit: '万吨' },
@@ -229,6 +241,10 @@ const grainOilData: SupplyChainData = {
         title: '粮食基地4',
         content: '杂粮特色种植区',
         industry: '粮食',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '种植面积:', value: '4', unit: '万亩' },
           { label: '年产量:', value: '20', unit: '万吨' },
@@ -240,6 +256,10 @@ const grainOilData: SupplyChainData = {
         title: '粮食产业链1',
         content: '粮食初加工中心',
         industry: '粮食',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '加工能力:', value: '100', unit: '万吨/年' },
           { label: '仓储容量:', value: '80', unit: '万吨' },
@@ -251,6 +271,10 @@ const grainOilData: SupplyChainData = {
         title: '粮食产业链2',
         content: '粮食深加工基地',
         industry: '粮食',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '加工能力:', value: '60', unit: '万吨/年' },
           { label: '产品种类:', value: '15', unit: '种' },
@@ -262,6 +286,10 @@ const grainOilData: SupplyChainData = {
         title: '粮食产业链3',
         content: '粮食质量检测中心',
         industry: '粮食',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '检测能力:', value: '200', unit: '万吨/年' },
           { label: '检测精度:', value: '99.9', unit: '%' },
@@ -273,6 +301,10 @@ const grainOilData: SupplyChainData = {
         title: '粮食产业链4',
         content: '粮食销售配送中心',
         industry: '粮食',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '年销售额:', value: '8000', unit: '万元' },
           { label: '覆盖区域:', value: '8', unit: '个省份' },
@@ -286,6 +318,10 @@ const grainOilData: SupplyChainData = {
         title: '油脂基地1',
         content: '油菜籽种植核心区',
         industry: '油脂',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '种植面积:', value: '5', unit: '万亩' },
           { label: '年产量:', value: '12', unit: '万吨' },
@@ -297,6 +333,10 @@ const grainOilData: SupplyChainData = {
         title: '油脂基地2',
         content: '花生种植示范基地',
         industry: '油脂',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '种植面积:', value: '4', unit: '万亩' },
           { label: '年产量:', value: '10', unit: '万吨' },
@@ -308,6 +348,10 @@ const grainOilData: SupplyChainData = {
         title: '油脂基地3',
         content: '大豆油料种植区',
         industry: '油脂',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '种植面积:', value: '6', unit: '万亩' },
           { label: '年产量:', value: '15', unit: '万吨' },
@@ -319,6 +363,10 @@ const grainOilData: SupplyChainData = {
         title: '油脂基地4',
         content: '芝麻特色种植基地',
         industry: '油脂',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '种植面积:', value: '3', unit: '万亩' },
           { label: '年产量:', value: '6', unit: '万吨' },
@@ -330,6 +378,10 @@ const grainOilData: SupplyChainData = {
         title: '油脂产业链1',
         content: '油脂压榨中心',
         industry: '油脂',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '压榨能力:', value: '80', unit: '万吨/年' },
           { label: '出油率:', value: '45', unit: '%' },
@@ -341,6 +393,10 @@ const grainOilData: SupplyChainData = {
         title: '油脂产业链2',
         content: '油脂精炼厂',
         industry: '油脂',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '精炼能力:', value: '50', unit: '万吨/年' },
           { label: '产品等级:', value: '一级', unit: '' },
@@ -352,6 +408,10 @@ const grainOilData: SupplyChainData = {
         title: '油脂产业链3',
         content: '油脂包装中心',
         industry: '油脂',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '包装能力:', value: '100', unit: '万瓶/年' },
           { label: '包装规格:', value: '8', unit: '种' },
@@ -363,6 +423,10 @@ const grainOilData: SupplyChainData = {
         title: '油脂产业链4',
         content: '油脂销售网络',
         industry: '油脂',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '年销售额:', value: '6000', unit: '万元' },
           { label: '覆盖区域:', value: '6', unit: '个省份' },
@@ -716,6 +780,10 @@ const livestockAquacultureData: SupplyChainData = {
         title: '畜牧基地1',
         content: '优质肉牛养殖示范基地',
         industry: '畜牧',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '养殖规模:', value: '5', unit: '万头/年' },
           { label: '年出栏量:', value: '4', unit: '万头' },
@@ -727,6 +795,10 @@ const livestockAquacultureData: SupplyChainData = {
         title: '畜牧产业链1',
         content: '肉牛屠宰加工中心',
         industry: '畜牧',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '加工能力:', value: '3', unit: '万头/年' },
           { label: '产品种类:', value: '8', unit: '种' },
@@ -738,6 +810,10 @@ const livestockAquacultureData: SupplyChainData = {
         title: '畜牧产业链2',
         content: '乳制品加工基地',
         industry: '畜牧',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '加工能力:', value: '50', unit: '吨/天' },
           { label: '产品种类:', value: '12', unit: '种' },
@@ -749,6 +825,10 @@ const livestockAquacultureData: SupplyChainData = {
         title: '畜牧产业链3',
         content: '饲料加工中心',
         industry: '畜牧',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '加工能力:', value: '100', unit: '万吨/年' },
           { label: '饲料种类:', value: '6', unit: '种' },
@@ -760,6 +840,10 @@ const livestockAquacultureData: SupplyChainData = {
         title: '畜牧产业链4',
         content: '畜牧产品销售网络',
         industry: '畜牧',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '年销售额:', value: '5000', unit: '万元' },
           { label: '覆盖区域:', value: '6', unit: '个省份' },
@@ -773,6 +857,10 @@ const livestockAquacultureData: SupplyChainData = {
         title: '水产基地1',
         content: '淡水鱼养殖核心区',
         industry: '水产',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '养殖面积:', value: '3', unit: '万亩' },
           { label: '年产量:', value: '8', unit: '万吨' },
@@ -784,6 +872,10 @@ const livestockAquacultureData: SupplyChainData = {
         title: '水产产业链1',
         content: '水产品初加工中心',
         industry: '水产',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '加工能力:', value: '20', unit: '万吨/年' },
           { label: '产品种类:', value: '10', unit: '种' },
@@ -795,6 +887,10 @@ const livestockAquacultureData: SupplyChainData = {
         title: '水产产业链2',
         content: '水产品深加工基地',
         industry: '水产',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '加工能力:', value: '15', unit: '万吨/年' },
           { label: '产品种类:', value: '8', unit: '种' },
@@ -806,6 +902,10 @@ const livestockAquacultureData: SupplyChainData = {
         title: '水产产业链3',
         content: '水产品质量检测中心',
         industry: '水产',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '检测能力:', value: '30', unit: '万吨/年' },
           { label: '检测精度:', value: '99.8', unit: '%' },
@@ -817,6 +917,10 @@ const livestockAquacultureData: SupplyChainData = {
         title: '水产产业链4',
         content: '水产品销售配送中心',
         industry: '水产',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '年销售额:', value: '4000', unit: '万元' },
           { label: '覆盖区域:', value: '5', unit: '个省份' },
@@ -897,6 +1001,10 @@ const freshFoodSaltData: SupplyChainData = {
         title: '鲜食基地1',
         content: '速冻食品原料基地',
         industry: '鲜食',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '种植面积:', value: '2', unit: '万亩' },
           { label: '年产量:', value: '5', unit: '万吨' },
@@ -908,6 +1016,10 @@ const freshFoodSaltData: SupplyChainData = {
         title: '鲜食产业链1',
         content: '速冻食品加工中心',
         industry: '鲜食',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '加工能力:', value: '20', unit: '万吨/年' },
           { label: '产品种类:', value: '15', unit: '种' },
@@ -919,6 +1031,10 @@ const freshFoodSaltData: SupplyChainData = {
         title: '鲜食产业链2',
         content: '预制菜加工基地',
         industry: '鲜食',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '加工能力:', value: '15', unit: '万吨/年' },
           { label: '产品种类:', value: '20', unit: '种' },
@@ -930,6 +1046,10 @@ const freshFoodSaltData: SupplyChainData = {
         title: '鲜食产业链3',
         content: '冷链仓储中心',
         industry: '鲜食',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '仓储容量:', value: '50', unit: '万吨' },
           { label: '冷链车辆:', value: '30', unit: '辆' },
@@ -941,6 +1061,10 @@ const freshFoodSaltData: SupplyChainData = {
         title: '鲜食产业链4',
         content: '鲜食销售网络',
         industry: '鲜食',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '年销售额:', value: '3500', unit: '万元' },
           { label: '覆盖区域:', value: '7', unit: '个省份' },
@@ -954,6 +1078,10 @@ const freshFoodSaltData: SupplyChainData = {
         title: '泛盐基地1',
         content: '优质盐田核心区',
         industry: '泛盐',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '盐田面积:', value: '1.5', unit: '万亩' },
           { label: '年产量:', value: '8', unit: '万吨' },
@@ -965,6 +1093,10 @@ const freshFoodSaltData: SupplyChainData = {
         title: '泛盐产业链1',
         content: '食盐精炼中心',
         industry: '泛盐',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '精炼能力:', value: '15', unit: '万吨/年' },
           { label: '产品种类:', value: '6', unit: '种' },
@@ -976,6 +1108,10 @@ const freshFoodSaltData: SupplyChainData = {
         title: '泛盐产业链2',
         content: '工业盐加工基地',
         industry: '泛盐',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '加工能力:', value: '20', unit: '万吨/年' },
           { label: '产品种类:', value: '8', unit: '种' },
@@ -987,6 +1123,10 @@ const freshFoodSaltData: SupplyChainData = {
         title: '泛盐产业链3',
         content: '盐化工产品中心',
         industry: '泛盐',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '生产能力:', value: '10', unit: '万吨/年' },
           { label: '产品种类:', value: '12', unit: '种' },
@@ -998,6 +1138,10 @@ const freshFoodSaltData: SupplyChainData = {
         title: '泛盐产业链4',
         content: '盐产品销售网络',
         industry: '泛盐',
+        imageUrls: [
+          "/supply-chain/images/康宏公司张湖粮油基地示范片区 1.png",
+          "/supply-chain/images/省储备粮咸宁库 1.png"
+        ],
         metrics: [
           { label: '年销售额:', value: '2800', unit: '万元' },
           { label: '覆盖区域:', value: '6', unit: '个省份' },

Некоторые файлы не были показаны из-за большого количества измененных файлов