feat: 添加关联描述mock
This commit is contained in:
@@ -469,7 +469,11 @@ function StockDetailPanel({ visible, event, onClose }) {
|
||||
setLoading(true);
|
||||
eventService.getRelatedStocks(event.id)
|
||||
.then(res => {
|
||||
console.log('[前端] 接收到事件相关股票数据:', res);
|
||||
if (res.success) {
|
||||
console.log('[前端] 股票数据数组:', res.data);
|
||||
console.log('[前端] 第一只股票:', res.data[0]);
|
||||
console.log('[前端] 第一只股票的 relation_desc:', res.data[0]?.relation_desc);
|
||||
setRelatedStocks(res.data);
|
||||
if (res.data.length > 0) {
|
||||
const codes = res.data.map(s => s.stock_code);
|
||||
@@ -585,8 +589,9 @@ function StockDetailPanel({ visible, event, onClose }) {
|
||||
title: '关联描述',
|
||||
dataIndex: 'relation_desc',
|
||||
key: 'relation_desc',
|
||||
width: 200,
|
||||
width: 300,
|
||||
render: (text, record) => {
|
||||
console.log('[表格渲染] 股票:', record.stock_code, 'relation_desc:', text);
|
||||
if (!text) return '--';
|
||||
|
||||
const isExpanded = expandedRows.has(record.stock_code);
|
||||
|
||||
Reference in New Issue
Block a user