feat: 添加合规内容
This commit is contained in:
@@ -5,6 +5,7 @@ import ReactECharts from 'echarts-for-react';
|
||||
import * as echarts from 'echarts';
|
||||
import moment from 'moment';
|
||||
import { stockService } from '../../services/eventService';
|
||||
import CitedContent from '../Citation/CitedContent';
|
||||
|
||||
const { Text } = Typography;
|
||||
|
||||
@@ -524,12 +525,21 @@ const StockChartAntdModal = ({
|
||||
</div>
|
||||
|
||||
{/* 关联描述 */}
|
||||
{stock?.relation_desc && (
|
||||
{stock?.relation_desc?.data ? (
|
||||
// 使用引用组件(带研报来源)
|
||||
<CitedContent
|
||||
data={stock.relation_desc.data}
|
||||
title="关联描述"
|
||||
showAIBadge={true}
|
||||
containerStyle={{ marginTop: 16 }}
|
||||
/>
|
||||
) : stock?.relation_desc ? (
|
||||
// 降级显示(无引用数据)
|
||||
<div style={{ marginTop: 16, padding: 16, backgroundColor: '#f5f5f5', borderRadius: 6 }}>
|
||||
<Text strong style={{ display: 'block', marginBottom: 8 }}>关联描述:</Text>
|
||||
<Text>{stock.relation_desc}(AI合成)</Text>
|
||||
</div>
|
||||
)}
|
||||
) : null}
|
||||
|
||||
{/* 调试信息 */}
|
||||
{process.env.NODE_ENV === 'development' && chartData && (
|
||||
|
||||
Reference in New Issue
Block a user