增加主力数据

This commit is contained in:
2025-12-29 17:19:12 +08:00
parent 476a741ea5
commit d35762401a
2 changed files with 19 additions and 24 deletions

View File

@@ -29,7 +29,6 @@ import {
Settings, Settings,
Network, Network,
FlaskConical, FlaskConical,
Star,
} from 'lucide-react'; } from 'lucide-react';
import { logger } from '@utils/logger'; import { logger } from '@utils/logger';
import axios from '@utils/axiosConfig'; import axios from '@utils/axiosConfig';
@@ -178,27 +177,17 @@ const ValueChainNodeCard: React.FC<ValueChainNodeCardProps> = memo(({
> >
<CardBody p={4}> <CardBody p={4}>
<VStack spacing={3} align="stretch"> <VStack spacing={3} align="stretch">
<HStack justify="space-between"> <HStack spacing={2}>
<HStack spacing={2}> <Icon
<Icon as={getNodeTypeIcon(node.node_type)}
as={getNodeTypeIcon(node.node_type)} color={colorConfig.icon}
color={colorConfig.icon} boxSize={5}
boxSize={5} />
/> {isCompany && (
{isCompany && ( <Badge colorScheme={colorConfig.badge} variant="solid">
<Badge colorScheme={colorConfig.badge} variant="solid">
</Badge>
</Badge> )}
)}
</HStack>
{node.importance_score !== undefined &&
node.importance_score >= 70 && (
<Tooltip label="重要节点">
<span>
<Icon as={Star} color={THEME.gold} boxSize={4} />
</span>
</Tooltip>
)}
</HStack> </HStack>
<Text fontWeight="bold" fontSize="sm" color={THEME.textPrimary} noOfLines={2}> <Text fontWeight="bold" fontSize="sm" color={THEME.textPrimary} noOfLines={2}>

View File

@@ -1157,9 +1157,12 @@ export const getKLineDarkGoldOption = (
lineStyle: { color: red, type: 'dashed', width: 1.5 }, lineStyle: { color: red, type: 'dashed', width: 1.5 },
label: { label: {
formatter: `阻力 ${formatPrice(supportResistance.resistance)}`, formatter: `阻力 ${formatPrice(supportResistance.resistance)}`,
position: 'end', position: 'insideEndTop',
color: red, color: red,
fontSize: 10, fontSize: 10,
backgroundColor: 'rgba(26, 26, 46, 0.85)',
padding: [2, 6],
borderRadius: 2,
}, },
}); });
} }
@@ -1170,9 +1173,12 @@ export const getKLineDarkGoldOption = (
lineStyle: { color: green, type: 'dashed', width: 1.5 }, lineStyle: { color: green, type: 'dashed', width: 1.5 },
label: { label: {
formatter: `支撑 ${formatPrice(supportResistance.support)}`, formatter: `支撑 ${formatPrice(supportResistance.support)}`,
position: 'end', position: 'insideEndBottom',
color: green, color: green,
fontSize: 10, fontSize: 10,
backgroundColor: 'rgba(26, 26, 46, 0.85)',
padding: [2, 6],
borderRadius: 2,
}, },
}); });
} }