增加主力数据
This commit is contained in:
@@ -29,7 +29,6 @@ import {
|
||||
Settings,
|
||||
Network,
|
||||
FlaskConical,
|
||||
Star,
|
||||
} from 'lucide-react';
|
||||
import { logger } from '@utils/logger';
|
||||
import axios from '@utils/axiosConfig';
|
||||
@@ -178,27 +177,17 @@ const ValueChainNodeCard: React.FC<ValueChainNodeCardProps> = memo(({
|
||||
>
|
||||
<CardBody p={4}>
|
||||
<VStack spacing={3} align="stretch">
|
||||
<HStack justify="space-between">
|
||||
<HStack spacing={2}>
|
||||
<Icon
|
||||
as={getNodeTypeIcon(node.node_type)}
|
||||
color={colorConfig.icon}
|
||||
boxSize={5}
|
||||
/>
|
||||
{isCompany && (
|
||||
<Badge colorScheme={colorConfig.badge} variant="solid">
|
||||
核心企业
|
||||
</Badge>
|
||||
)}
|
||||
</HStack>
|
||||
{node.importance_score !== undefined &&
|
||||
node.importance_score >= 70 && (
|
||||
<Tooltip label="重要节点">
|
||||
<span>
|
||||
<Icon as={Star} color={THEME.gold} boxSize={4} />
|
||||
</span>
|
||||
</Tooltip>
|
||||
)}
|
||||
<HStack spacing={2}>
|
||||
<Icon
|
||||
as={getNodeTypeIcon(node.node_type)}
|
||||
color={colorConfig.icon}
|
||||
boxSize={5}
|
||||
/>
|
||||
{isCompany && (
|
||||
<Badge colorScheme={colorConfig.badge} variant="solid">
|
||||
核心企业
|
||||
</Badge>
|
||||
)}
|
||||
</HStack>
|
||||
|
||||
<Text fontWeight="bold" fontSize="sm" color={THEME.textPrimary} noOfLines={2}>
|
||||
|
||||
@@ -1157,9 +1157,12 @@ export const getKLineDarkGoldOption = (
|
||||
lineStyle: { color: red, type: 'dashed', width: 1.5 },
|
||||
label: {
|
||||
formatter: `阻力 ${formatPrice(supportResistance.resistance)}`,
|
||||
position: 'end',
|
||||
position: 'insideEndTop',
|
||||
color: red,
|
||||
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 },
|
||||
label: {
|
||||
formatter: `支撑 ${formatPrice(supportResistance.support)}`,
|
||||
position: 'end',
|
||||
position: 'insideEndBottom',
|
||||
color: green,
|
||||
fontSize: 10,
|
||||
backgroundColor: 'rgba(26, 26, 46, 0.85)',
|
||||
padding: [2, 6],
|
||||
borderRadius: 2,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user